org.openanzo.services.trackers
Interface ITracker

All Superinterfaces:
INotificationSelector
All Known Subinterfaces:
ISerializableTracker
All Known Implementing Classes:
JenaSelectorTracker, SelectorTracker, Tracker

public interface ITracker
extends INotificationSelector

Used to specify what statements are tracked by DatasetService

Author:
Christopher R. Vincent, Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 boolean equals(java.lang.Object obj)
          This is here simply to remind you to implement equals and hashCode when implementing this interface.
 org.openrdf.model.Resource getContext()
          Get the Context resource for tracker
 org.openrdf.model.Value getObject()
          Get the Object value for the tracker
 org.openrdf.model.URI getPredicate()
          Get the Predicate URI for the tracker
 java.lang.String getQueryString()
          Get the Sparql query used in order to retrieve this queries matching statements from the dataset
 org.openrdf.model.Resource getSubject()
          Get the Subject resource for the tracker
 int hashCode()
          This is here simply to remind you to implement equals and hashCode when implementing this interface.
 boolean matchNamedGraphUri(org.openrdf.model.URI namedGraphUri)
          Determine if a change to the given NamedGraph matches this tracker.
 boolean matchStatement(org.openrdf.model.Statement statement)
          Determine if the given statement matches this tracker.
 
Methods inherited from interface org.openanzo.services.INotificationSelector
getMessageSelector
 

Method Detail

getQueryString

java.lang.String getQueryString()
Get the Sparql query used in order to retrieve this queries matching statements from the dataset

Returns:
the Sparql query used in order to retrieve this queries matching statements from the dataset

getContext

org.openrdf.model.Resource getContext()
Get the Context resource for tracker

Returns:
the Context resource for tracker

getSubject

org.openrdf.model.Resource getSubject()
Get the Subject resource for the tracker

Returns:
the Subject resource for the tracker

getPredicate

org.openrdf.model.URI getPredicate()
Get the Predicate URI for the tracker

Returns:
the Predicate URI for the tracker

getObject

org.openrdf.model.Value getObject()
Get the Object value for the tracker

Returns:
the Object value for the tracker

matchNamedGraphUri

boolean matchNamedGraphUri(org.openrdf.model.URI namedGraphUri)
Determine if a change to the given NamedGraph matches this tracker.

Parameters:
namedGraphUri - Uri of namedGraph to compare.
Returns:
true if a change to the given NamedGraph matches this tracker.

matchStatement

boolean matchStatement(org.openrdf.model.Statement statement)
Determine if the given statement matches this tracker.

Parameters:
statement - statement to compare
Returns:
true if the given statement matches this tracker.

equals

boolean equals(java.lang.Object obj)
This is here simply to remind you to implement equals and hashCode when implementing this interface. Two trackers are equal if they yield the same result when calling matchStatement for all possible statements.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to determine equality
Returns:
true if two trackers yield the same result when calling matchStatement for all possible statements

hashCode

int hashCode()
This is here simply to remind you to implement equals and hashCode when implementing this interface. Two trackers are equal if they yield the same result when calling matchStatement for all possible statements.

Overrides:
hashCode in class java.lang.Object
Returns:
hashCode for this tracker


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.