org.openanzo.owl
Class DataRangeImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.owl.DataRangeImpl
All Implemented Interfaces:
CoreThing, GraphThing, DataRange

public class DataRangeImpl
extends GraphThingImpl
implements DataRange

Implementation of DataRange Use the org.openanzo.owl.OWL11Factory to create instances of this class.

(URI: http://www.w3.org/2002/07/owl#DataRange)



Field Summary
 
Fields inherited from interface org.openanzo.owl.DataRange
TYPE
 
Method Summary
 Class addComplementOf()
          Adds an anonymous value for the 'complementOf' property
 void addComplementOf(Class complementOf)
          Adds a value for the 'complementOf' property
 Class addComplementOf(org.openrdf.model.Resource resource)
          Adds a value for the 'complementOf' property.
 info.aduna.collections.iterators.CloseableIterator<Class> getComplementOf()
          Get an Iterator the 'complementOf' property values.
 GraphThing getOneOf()
          Gets the 'oneOf' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeComplementOf(Class complementOf)
          Removes a value for the 'complementOf' property.
 void removeComplementOf(org.openrdf.model.Resource complementOf)
          Remove a 'complementOf' property value.
 GraphThing setOneOf()
          Sets the 'oneOf' property value to an anonymous node
 void setOneOf(GraphThing oneOf)
          Sets the 'oneOf' property value
 GraphThing setOneOf(org.openrdf.model.Resource resource)
          Sets the 'oneOf' property value to the given resource, and add's rdf:type properties.
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, registerListener, removeStatements, resource, setPropertyValue, setPropertyValue, toString, unregisterListener, 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, registerListener, removeStatements, resource, unregisterListener, 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

getOneOf

public GraphThing getOneOf()
                    throws JastorException
Description copied from interface: DataRange
Gets the 'oneOf' property value

Specified by:
getOneOf in interface DataRange
Returns:
GraphThing
Throws:
JastorException
See Also:
DataRange.oneOfProperty

setOneOf

public void setOneOf(GraphThing oneOf)
              throws JastorException
Description copied from interface: DataRange
Sets the 'oneOf' property value

Specified by:
setOneOf in interface DataRange
Parameters:
oneOf - GraphThing
Throws:
JastorException
See Also:
DataRange.oneOfProperty

setOneOf

public GraphThing setOneOf()
                    throws JastorException
Description copied from interface: DataRange
Sets the 'oneOf' property value to an anonymous node

Specified by:
setOneOf in interface DataRange
Returns:
GraphThing, the created value
Throws:
JastorException
See Also:
DataRange.oneOfProperty

setOneOf

public GraphThing setOneOf(org.openrdf.model.Resource resource)
                    throws JastorException
Description copied from interface: DataRange
Sets the 'oneOf' 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 setOneOf(org.openanzo.jastor.GraphThing oneOf) 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:
setOneOf in interface DataRange
Parameters:
resource - Resource must not be be null.
Returns:
GraphThing, the newly created value
Throws:
JastorException
See Also:
DataRange.oneOfProperty

getComplementOf

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

Specified by:
getComplementOf in interface DataRange
Returns:
Iterator of Class
Throws:
JastorException
See Also:
DataRange.complementOfProperty

addComplementOf

public void addComplementOf(Class complementOf)
                     throws JastorException
Description copied from interface: DataRange
Adds a value for the 'complementOf' property

Specified by:
addComplementOf in interface DataRange
Parameters:
complementOf - The Class to add
Throws:
JastorException
See Also:
DataRange.complementOfProperty

addComplementOf

public Class addComplementOf()
                      throws JastorException
Description copied from interface: DataRange
Adds an anonymous value for the 'complementOf' property

Specified by:
addComplementOf in interface DataRange
Returns:
The anoymous Class created
Throws:
JastorException
See Also:
DataRange.complementOfProperty

addComplementOf

public Class addComplementOf(org.openrdf.model.Resource resource)
                      throws JastorException
Description copied from interface: DataRange
Adds a value for the 'complementOf' property. This method is equivalent constructing a new instance of Class with the factory and calling addComplementOf(org.openanzo.owl.Class complementOf) The resource argument have rdf:type http://www.w3.org/2002/07/owl#Class. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addComplementOf in interface DataRange
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.owl.Class created
Throws:
JastorException
See Also:
DataRange.complementOfProperty

removeComplementOf

public void removeComplementOf(Class complementOf)
                        throws JastorException
Description copied from interface: DataRange
Removes a value for the 'complementOf' 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:
removeComplementOf in interface DataRange
Parameters:
complementOf - The Class to remove
Throws:
JastorException
See Also:
DataRange.complementOfProperty

removeComplementOf

public void removeComplementOf(org.openrdf.model.Resource complementOf)
                        throws JastorException
Description copied from interface: DataRange
Remove a 'complementOf' 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:
removeComplementOf in interface DataRange
Parameters:
complementOf - Class, the value to remove
Throws:
JastorException
See Also:
DataRange.complementOfProperty


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