org.openanzo.common.ontology
Class PreconditionImpl

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

public class PreconditionImpl
extends GraphThingImpl
implements Precondition

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

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



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.Precondition
TYPE
 
Method Summary
 Dataset getDataset()
          Gets the 'dataset' property value
 Query getQuery()
          Gets the 'query' property value
 Result getResult()
          Gets the 'result' property value
 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
 Dataset setDataset()
          Sets the 'dataset' property value to an anonymous node
 void setDataset(Dataset dataset)
          Sets the 'dataset' property value
 Dataset setDataset(org.openrdf.model.Resource resource)
          Sets the 'dataset' property value to the given resource, and add's rdf:type properties.
 Query setQuery()
          Sets the 'query' property value to an anonymous node
 void setQuery(Query query)
          Sets the 'query' property value
 Query setQuery(org.openrdf.model.Resource resource)
          Sets the 'query' property value to the given resource, and add's rdf:type properties.
 Result setResult()
          Sets the 'result' property value to an anonymous node
 Result setResult(org.openrdf.model.Resource resource)
          Sets the 'result' property value to the given resource, and add's rdf:type properties.
 void setResult(Result result)
          Sets the 'result' 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

getDataset

public Dataset getDataset()
                   throws JastorException
Description copied from interface: Precondition
Gets the 'dataset' property value

Specified by:
getDataset in interface Precondition
Returns:
Dataset
Throws:
JastorException
See Also:
Precondition.datasetProperty

setDataset

public void setDataset(Dataset dataset)
                throws JastorException
Description copied from interface: Precondition
Sets the 'dataset' property value

Specified by:
setDataset in interface Precondition
Parameters:
dataset - Dataset
Throws:
JastorException
See Also:
Precondition.datasetProperty

setDataset

public Dataset setDataset()
                   throws JastorException
Description copied from interface: Precondition
Sets the 'dataset' property value to an anonymous node

Specified by:
setDataset in interface Precondition
Returns:
Dataset, the created value
Throws:
JastorException
See Also:
Precondition.datasetProperty

setDataset

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

Specified by:
setDataset in interface Precondition
Parameters:
resource - Resource must not be be null.
Returns:
Dataset, the newly created value
Throws:
JastorException
See Also:
Precondition.datasetProperty

getQuery

public Query getQuery()
               throws JastorException
Description copied from interface: Precondition
Gets the 'query' property value

Specified by:
getQuery in interface Precondition
Returns:
Query
Throws:
JastorException
See Also:
Precondition.queryProperty

setQuery

public void setQuery(Query query)
              throws JastorException
Description copied from interface: Precondition
Sets the 'query' property value

Specified by:
setQuery in interface Precondition
Parameters:
query - Query
Throws:
JastorException
See Also:
Precondition.queryProperty

setQuery

public Query setQuery()
               throws JastorException
Description copied from interface: Precondition
Sets the 'query' property value to an anonymous node

Specified by:
setQuery in interface Precondition
Returns:
Query, the created value
Throws:
JastorException
See Also:
Precondition.queryProperty

setQuery

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

Specified by:
setQuery in interface Precondition
Parameters:
resource - Resource must not be be null.
Returns:
Query, the newly created value
Throws:
JastorException
See Also:
Precondition.queryProperty

getResult

public Result getResult()
                 throws JastorException
Description copied from interface: Precondition
Gets the 'result' property value

Specified by:
getResult in interface Precondition
Returns:
Result
Throws:
JastorException
See Also:
Precondition.resultProperty

setResult

public void setResult(Result result)
               throws JastorException
Description copied from interface: Precondition
Sets the 'result' property value

Specified by:
setResult in interface Precondition
Parameters:
result - Result
Throws:
JastorException
See Also:
Precondition.resultProperty

setResult

public Result setResult()
                 throws JastorException
Description copied from interface: Precondition
Sets the 'result' property value to an anonymous node

Specified by:
setResult in interface Precondition
Returns:
Result, the created value
Throws:
JastorException
See Also:
Precondition.resultProperty

setResult

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

Specified by:
setResult in interface Precondition
Parameters:
resource - Resource must not be be null.
Returns:
Result, the newly created value
Throws:
JastorException
See Also:
Precondition.resultProperty

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.