org.openanzo.owl.dataset
Class DataRangeImpl

java.lang.Object
  extended by org.openanzo.jastor.DatasetThingImpl
      extended by org.openanzo.owl.dataset.DataRangeImpl
All Implemented Interfaces:
CoreThing, DatasetThing, DataRange

public class DataRangeImpl
extends DatasetThingImpl
implements DataRange

Implementation of DataRange Use the org.openanzo.owl.dataset.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.dataset.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.
 DatasetThing 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 registerListener(DataRangeListener listener)
          Register a DataRangeListener
 void registerWithEventManager()
          Register the object listeners with the dataset's event manager
 void removeComplementOf(Class complementOf)
          Removes a value for the 'complementOf' property.
 DatasetThing setOneOf()
          Sets the 'oneOf' property value to an anonymous node
 void setOneOf(DatasetThing oneOf)
          Sets the 'oneOf' property value
 DatasetThing setOneOf(org.openrdf.model.Resource resource)
          Sets the 'oneOf' property value to the given resource, and add's rdf:type properties.
 void unregisterListener(DataRangeListener listener)
          Unregister a DataRangeListener
 void unregisterWithEventManager()
          Unregister the object listeners with the dataset's event manager
 
Methods inherited from class org.openanzo.jastor.DatasetThingImpl
clearCache, dataset, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValues, isRDFType, namedGraphUri, 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.DatasetThing
dataset, getProperties, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValues, namedGraphUri, 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 DatasetThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getOneOf

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

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

setOneOf

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

Specified by:
setOneOf in interface DataRange
Parameters:
oneOf - DatasetThing, value to set
Throws:
JastorException
See Also:
DataRange.oneOfProperty

setOneOf

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

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

setOneOf

public DatasetThing 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 DatasetThing with the factory. and calling setOneOf(org.openanzo.jastor.DatasetThing 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:
DatasetThing, 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.dataset.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:
org.openanzo.owl.dataset.Class, value added
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

registerWithEventManager

public void registerWithEventManager()
Register the object listeners with the dataset's event manager


unregisterWithEventManager

public void unregisterWithEventManager()
Unregister the object listeners with the dataset's event manager


registerListener

public void registerListener(DataRangeListener listener)
Description copied from interface: DataRange
Register a DataRangeListener

Specified by:
registerListener in interface DataRange
Parameters:
listener - DataRangeListener to register

unregisterListener

public void unregisterListener(DataRangeListener listener)
Description copied from interface: DataRange
Unregister a DataRangeListener

Specified by:
unregisterListener in interface DataRange
Parameters:
listener - DataRangeListener to unregister


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