org.openanzo.common.ontology
Class TrackerImpl

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

public class TrackerImpl
extends GraphThingImpl
implements Tracker

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

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



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.Tracker
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
 java.lang.Boolean getReplicated()
          Gets the 'replicated' 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
 void setReplicated(java.lang.Boolean replicated)
          Sets the 'replicated' property value
 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

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.