org.openanzo.common.ontology
Class SelectorTrackerImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.common.ontology.SelectorTrackerImpl
All Implemented Interfaces:
SelectorTracker, Tracker, CoreThing, GraphThing

public class SelectorTrackerImpl
extends GraphThingImpl
implements SelectorTracker

Implementation of SelectorTracker Use the org.openanzo.common.ontology.AnzoFactory to create instances of this class.

(URI: http://openanzo.org/types/SelectorTracker)



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.SelectorTracker
TYPE
 
Method Summary
 GraphThing addTrackerSet()
          Adds an anonymous value for the 'trackerSet' property
 void addTrackerSet(GraphThing trackerSet)
          Adds a value for the 'trackerSet' property
 GraphThing addTrackerSet(org.openrdf.model.Resource resource)
          Adds a value for the 'trackerSet' property.
 java.lang.Boolean getMarkedDeleted()
          Gets the 'markedDeleted' property value
 GraphThing getNamedgraph()
          Gets the 'namedgraph' property value
 GraphThing getObject()
          Gets the 'object' property value
 GraphThing getPredicate()
          Gets the 'predicate' property value
 java.lang.Boolean getReplicated()
          Gets the 'replicated' property value
 GraphThing getSubject()
          Gets the 'subject' property value
 java.util.Calendar getTimestamp()
          Gets the 'timestamp' property value
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getTrackerSet()
          Get an Iterator the 'trackerSet' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void registerListener(ThingListener listener)
          Register a ThingListener for this THING
 void removeTrackerSet(GraphThing trackerSet)
          Removes a value for the 'trackerSet' property.
 void removeTrackerSet(org.openrdf.model.Resource trackerSet)
          Remove a 'trackerSet' property value.
 void setMarkedDeleted(java.lang.Boolean markedDeleted)
          Sets the 'markedDeleted' property value
 GraphThing setNamedgraph()
          Sets the 'namedgraph' property value to an anonymous node
 void setNamedgraph(GraphThing namedgraph)
          Sets the 'namedgraph' property value
 GraphThing setNamedgraph(org.openrdf.model.Resource resource)
          Sets the 'namedgraph' property value to the given resource, and add's rdf:type properties.
 GraphThing setObject()
          Sets the 'object' property value to an anonymous node
 void setObject(GraphThing object)
          Sets the 'object' property value
 GraphThing setObject(org.openrdf.model.Resource resource)
          Sets the 'object' property value to the given resource, and add's rdf:type properties.
 GraphThing setPredicate()
          Sets the 'predicate' property value to an anonymous node
 void setPredicate(GraphThing predicate)
          Sets the 'predicate' property value
 GraphThing setPredicate(org.openrdf.model.Resource resource)
          Sets the 'predicate' property value to the given resource, and add's rdf:type properties.
 void setReplicated(java.lang.Boolean replicated)
          Sets the 'replicated' property value
 GraphThing setSubject()
          Sets the 'subject' property value to an anonymous node
 void setSubject(GraphThing subject)
          Sets the 'subject' property value
 GraphThing setSubject(org.openrdf.model.Resource resource)
          Sets the 'subject' property value to the given resource, and add's rdf:type properties.
 void setTimestamp(java.util.Calendar timestamp)
          Sets the 'timestamp' property value
 void unregisterListener(ThingListener listener)
          Unregister a ThingListener for this THING
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, removeStatements, resource, setPropertyValue, setPropertyValue, toString, uri
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, removeStatements, resource, uri
 

Method Detail

listStatements

public java.util.Collection<org.openrdf.model.Statement> listStatements()
Description copied from interface: CoreThing
Get set of statements that makeup this THINGS's properties and types

Specified by:
listStatements in interface CoreThing
Overrides:
listStatements in class GraphThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getMarkedDeleted

public java.lang.Boolean getMarkedDeleted()
                                   throws JastorException
Description copied from interface: Tracker
Gets the 'markedDeleted' property value

Specified by:
getMarkedDeleted in interface Tracker
Returns:
Boolean
Throws:
JastorException
See Also:
Tracker.markedDeletedProperty

setMarkedDeleted

public void setMarkedDeleted(java.lang.Boolean markedDeleted)
                      throws JastorException
Description copied from interface: Tracker
Sets the 'markedDeleted' property value

Specified by:
setMarkedDeleted in interface Tracker
Parameters:
markedDeleted - Boolean
Throws:
JastorException
See Also:
Tracker.markedDeletedProperty

getReplicated

public java.lang.Boolean getReplicated()
                                throws JastorException
Description copied from interface: Tracker
Gets the 'replicated' property value

Specified by:
getReplicated in interface Tracker
Returns:
Boolean
Throws:
JastorException
See Also:
Tracker.replicatedProperty

setReplicated

public void setReplicated(java.lang.Boolean replicated)
                   throws JastorException
Description copied from interface: Tracker
Sets the 'replicated' property value

Specified by:
setReplicated in interface Tracker
Parameters:
replicated - Boolean
Throws:
JastorException
See Also:
Tracker.replicatedProperty

getTimestamp

public java.util.Calendar getTimestamp()
                                throws JastorException
Description copied from interface: Tracker
Gets the 'timestamp' property value

Specified by:
getTimestamp in interface Tracker
Returns:
Calendar
Throws:
JastorException
See Also:
Tracker.timestampProperty

setTimestamp

public void setTimestamp(java.util.Calendar timestamp)
                  throws JastorException
Description copied from interface: Tracker
Sets the 'timestamp' property value

Specified by:
setTimestamp in interface Tracker
Parameters:
timestamp - Calendar
Throws:
JastorException
See Also:
Tracker.timestampProperty

getTrackerSet

public info.aduna.collections.iterators.CloseableIterator<GraphThing> getTrackerSet()
                                                                             throws JastorException
Description copied from interface: Tracker
Get an Iterator the 'trackerSet' property values. This Iteartor may be used to remove all such values.

Specified by:
getTrackerSet in interface Tracker
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

addTrackerSet

public void addTrackerSet(GraphThing trackerSet)
                   throws JastorException
Description copied from interface: Tracker
Adds a value for the 'trackerSet' property

Specified by:
addTrackerSet in interface Tracker
Parameters:
trackerSet - The GraphThing to add
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

addTrackerSet

public GraphThing addTrackerSet()
                         throws JastorException
Description copied from interface: Tracker
Adds an anonymous value for the 'trackerSet' property

Specified by:
addTrackerSet in interface Tracker
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

addTrackerSet

public GraphThing addTrackerSet(org.openrdf.model.Resource resource)
                         throws JastorException
Description copied from interface: Tracker
Adds a value for the 'trackerSet' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addTrackerSet(org.openanzo.jastor.GraphThing trackerSet) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addTrackerSet in interface Tracker
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.jastor.GraphThing created
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

removeTrackerSet

public void removeTrackerSet(GraphThing trackerSet)
                      throws JastorException
Description copied from interface: Tracker
Removes a value for the 'trackerSet' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeTrackerSet in interface Tracker
Parameters:
trackerSet - The GraphThing to remove
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

removeTrackerSet

public void removeTrackerSet(org.openrdf.model.Resource trackerSet)
                      throws JastorException
Description copied from interface: Tracker
Remove a 'trackerSet' property value. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeTrackerSet in interface Tracker
Parameters:
trackerSet - GraphThing, the value to remove
Throws:
JastorException
See Also:
Tracker.trackerSetProperty

getNamedgraph

public GraphThing getNamedgraph()
                         throws JastorException
Description copied from interface: SelectorTracker
Gets the 'namedgraph' property value

Specified by:
getNamedgraph in interface SelectorTracker
Returns:
GraphThing
Throws:
JastorException
See Also:
SelectorTracker.namedgraphProperty

setNamedgraph

public void setNamedgraph(GraphThing namedgraph)
                   throws JastorException
Description copied from interface: SelectorTracker
Sets the 'namedgraph' property value

Specified by:
setNamedgraph in interface SelectorTracker
Parameters:
namedgraph - GraphThing
Throws:
JastorException
See Also:
SelectorTracker.namedgraphProperty

setNamedgraph

public GraphThing setNamedgraph()
                         throws JastorException
Description copied from interface: SelectorTracker
Sets the 'namedgraph' property value to an anonymous node

Specified by:
setNamedgraph in interface SelectorTracker
Returns:
GraphThing, the created value
Throws:
JastorException
See Also:
SelectorTracker.namedgraphProperty

setNamedgraph

public GraphThing setNamedgraph(org.openrdf.model.Resource resource)
                         throws JastorException
Description copied from interface: SelectorTracker
Sets the 'namedgraph' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of GraphThing with the factory. and calling setNamedgraph(org.openanzo.jastor.GraphThing namedgraph) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setNamedgraph in interface SelectorTracker
Parameters:
resource - Resource must not be be null.
Returns:
GraphThing, the newly created value
Throws:
JastorException
See Also:
SelectorTracker.namedgraphProperty

getObject

public GraphThing getObject()
                     throws JastorException
Description copied from interface: SelectorTracker
Gets the 'object' property value

Specified by:
getObject in interface SelectorTracker
Returns:
GraphThing
Throws:
JastorException
See Also:
SelectorTracker.objectProperty

setObject

public void setObject(GraphThing object)
               throws JastorException
Description copied from interface: SelectorTracker
Sets the 'object' property value

Specified by:
setObject in interface SelectorTracker
Parameters:
object - GraphThing
Throws:
JastorException
See Also:
SelectorTracker.objectProperty

setObject

public GraphThing setObject()
                     throws JastorException
Description copied from interface: SelectorTracker
Sets the 'object' property value to an anonymous node

Specified by:
setObject in interface SelectorTracker
Returns:
GraphThing, the created value
Throws:
JastorException
See Also:
SelectorTracker.objectProperty

setObject

public GraphThing setObject(org.openrdf.model.Resource resource)
                     throws JastorException
Description copied from interface: SelectorTracker
Sets the 'object' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of GraphThing with the factory. and calling setObject(org.openanzo.jastor.GraphThing object) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setObject in interface SelectorTracker
Parameters:
resource - Resource must not be be null.
Returns:
GraphThing, the newly created value
Throws:
JastorException
See Also:
SelectorTracker.objectProperty

getPredicate

public GraphThing getPredicate()
                        throws JastorException
Description copied from interface: SelectorTracker
Gets the 'predicate' property value

Specified by:
getPredicate in interface SelectorTracker
Returns:
GraphThing
Throws:
JastorException
See Also:
SelectorTracker.predicateProperty

setPredicate

public void setPredicate(GraphThing predicate)
                  throws JastorException
Description copied from interface: SelectorTracker
Sets the 'predicate' property value

Specified by:
setPredicate in interface SelectorTracker
Parameters:
predicate - GraphThing
Throws:
JastorException
See Also:
SelectorTracker.predicateProperty

setPredicate

public GraphThing setPredicate()
                        throws JastorException
Description copied from interface: SelectorTracker
Sets the 'predicate' property value to an anonymous node

Specified by:
setPredicate in interface SelectorTracker
Returns:
GraphThing, the created value
Throws:
JastorException
See Also:
SelectorTracker.predicateProperty

setPredicate

public GraphThing setPredicate(org.openrdf.model.Resource resource)
                        throws JastorException
Description copied from interface: SelectorTracker
Sets the 'predicate' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of GraphThing with the factory. and calling setPredicate(org.openanzo.jastor.GraphThing predicate) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setPredicate in interface SelectorTracker
Parameters:
resource - Resource must not be be null.
Returns:
GraphThing, the newly created value
Throws:
JastorException
See Also:
SelectorTracker.predicateProperty

getSubject

public GraphThing getSubject()
                      throws JastorException
Description copied from interface: SelectorTracker
Gets the 'subject' property value

Specified by:
getSubject in interface SelectorTracker
Returns:
GraphThing
Throws:
JastorException
See Also:
SelectorTracker.subjectProperty

setSubject

public void setSubject(GraphThing subject)
                throws JastorException
Description copied from interface: SelectorTracker
Sets the 'subject' property value

Specified by:
setSubject in interface SelectorTracker
Parameters:
subject - GraphThing
Throws:
JastorException
See Also:
SelectorTracker.subjectProperty

setSubject

public GraphThing setSubject()
                      throws JastorException
Description copied from interface: SelectorTracker
Sets the 'subject' property value to an anonymous node

Specified by:
setSubject in interface SelectorTracker
Returns:
GraphThing, the created value
Throws:
JastorException
See Also:
SelectorTracker.subjectProperty

setSubject

public GraphThing setSubject(org.openrdf.model.Resource resource)
                      throws JastorException
Description copied from interface: SelectorTracker
Sets the 'subject' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of GraphThing with the factory. and calling setSubject(org.openanzo.jastor.GraphThing subject) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setSubject in interface SelectorTracker
Parameters:
resource - Resource must not be be null.
Returns:
GraphThing, the newly created value
Throws:
JastorException
See Also:
SelectorTracker.subjectProperty

registerListener

public void registerListener(ThingListener listener)
Description copied from interface: CoreThing
Register a ThingListener for this THING

Specified by:
registerListener in interface CoreThing
Overrides:
registerListener in class GraphThingImpl
Parameters:
listener - ThingListener

unregisterListener

public void unregisterListener(ThingListener listener)
Description copied from interface: CoreThing
Unregister a ThingListener for this THING

Specified by:
unregisterListener in interface CoreThing
Overrides:
unregisterListener in class GraphThingImpl
Parameters:
listener - ThingListener


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