org.openanzo.common.ontology
Class CommandImpl

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

public class CommandImpl
extends GraphThingImpl
implements Command

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

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



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.Command
TYPE
 
Method Summary
 Precondition addPrecondition()
          Adds an anonymous value for the 'precondition' property
 void addPrecondition(Precondition precondition)
          Adds a value for the 'precondition' property
 Precondition addPrecondition(org.openrdf.model.Resource resource)
          Adds a value for the 'precondition' property.
 info.aduna.collections.iterators.CloseableIterator<Precondition> getPrecondition()
          Get an Iterator the 'precondition' 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 removePrecondition(Precondition precondition)
          Removes a value for the 'precondition' property.
 void removePrecondition(org.openrdf.model.Resource precondition)
          Remove a 'precondition' 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

getPrecondition

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

Specified by:
getPrecondition in interface Command
Returns:
Iterator of Precondition
Throws:
JastorException
See Also:
Command.preconditionProperty

addPrecondition

public void addPrecondition(Precondition precondition)
                     throws JastorException
Description copied from interface: Command
Adds a value for the 'precondition' property

Specified by:
addPrecondition in interface Command
Parameters:
precondition - The Precondition to add
Throws:
JastorException
See Also:
Command.preconditionProperty

addPrecondition

public Precondition addPrecondition()
                             throws JastorException
Description copied from interface: Command
Adds an anonymous value for the 'precondition' property

Specified by:
addPrecondition in interface Command
Returns:
The anoymous Precondition created
Throws:
JastorException
See Also:
Command.preconditionProperty

addPrecondition

public Precondition addPrecondition(org.openrdf.model.Resource resource)
                             throws JastorException
Description copied from interface: Command
Adds a value for the 'precondition' property. This method is equivalent constructing a new instance of Precondition with the factory and calling addPrecondition(org.openanzo.common.ontology.Precondition precondition) The resource argument have rdf:type http://openanzo.org/types/Precondition. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addPrecondition in interface Command
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.Precondition created
Throws:
JastorException
See Also:
Command.preconditionProperty

removePrecondition

public void removePrecondition(Precondition precondition)
                        throws JastorException
Description copied from interface: Command
Removes a value for the 'precondition' 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:
removePrecondition in interface Command
Parameters:
precondition - The Precondition to remove
Throws:
JastorException
See Also:
Command.preconditionProperty

removePrecondition

public void removePrecondition(org.openrdf.model.Resource precondition)
                        throws JastorException
Description copied from interface: Command
Remove a 'precondition' 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:
removePrecondition in interface Command
Parameters:
precondition - Precondition, the value to remove
Throws:
JastorException
See Also:
Command.preconditionProperty

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.