org.openanzo.common.ontology
Interface Command

All Superinterfaces:
CoreThing, GraphThing
All Known Implementing Classes:
CommandImpl

public interface Command
extends GraphThing

Interface for Command ontology class
Use the org.openanzo.common.ontology.AnzoFactory to create instances of this interface.

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


RDF Schema Standard Properties
comment : A Unit of work constituting a command



Field Summary
static org.openrdf.model.URI preconditionProperty
          The Anzo Property for precondition
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
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.
 void removePrecondition(Precondition precondition)
          Removes a value for the 'precondition' property.
 void removePrecondition(org.openrdf.model.Resource precondition)
          Remove a 'precondition' property value.
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


preconditionProperty

static final org.openrdf.model.URI preconditionProperty
The Anzo Property for precondition

(URI: http://openanzo.org/predicates/precondition)


Method Detail

getPrecondition

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

Returns:
Iterator of Precondition
Throws:
JastorException
See Also:
preconditionProperty

addPrecondition

void addPrecondition(Precondition precondition)
                     throws JastorException
Adds a value for the 'precondition' property

Parameters:
precondition - The Precondition to add
Throws:
JastorException
See Also:
preconditionProperty

addPrecondition

Precondition addPrecondition()
                             throws JastorException
Adds an anonymous value for the 'precondition' property

Returns:
The anoymous Precondition created
Throws:
JastorException
See Also:
preconditionProperty

addPrecondition

Precondition addPrecondition(org.openrdf.model.Resource resource)
                             throws JastorException
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.

Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.Precondition created
Throws:
JastorException
See Also:
preconditionProperty

removePrecondition

void removePrecondition(Precondition precondition)
                        throws JastorException
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.

Parameters:
precondition - The Precondition to remove
Throws:
JastorException
See Also:
preconditionProperty

removePrecondition

void removePrecondition(org.openrdf.model.Resource precondition)
                        throws JastorException
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.

Parameters:
precondition - Precondition, the value to remove
Throws:
JastorException
See Also:
preconditionProperty


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