org.openanzo.owl.dataset
Class DataRestrictionImpl

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

public class DataRestrictionImpl
extends DatasetThingImpl
implements DataRestriction

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

(URI: http://www.w3.org/owl11#DataRestriction)



Field Summary
 
Fields inherited from interface org.openanzo.owl.dataset.DataRestriction
TYPE
 
Method Summary
 void addCardinality(java.lang.Integer cardinality)
          Add a 'cardinality' property value
 void addMaxCardinality(java.lang.Integer maxCardinality)
          Add a 'maxCardinality' property value
 void addMinCardinality(java.lang.Integer minCardinality)
          Add a 'minCardinality' property value
 info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getCardinality()
          Iterates through the 'cardinality' property values.
 info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMaxCardinality()
          Iterates through the 'maxCardinality' property values.
 info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMinCardinality()
          Iterates through the 'minCardinality' property values.
 DataRange getOnDataRange()
          Gets the 'onDataRange' property value
 _Property getOnProperty()
          Gets the 'onProperty' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void registerListener(DataRestrictionListener listener)
          Register a DataRestrictionListener
 void registerWithEventManager()
          Register the object listeners with the dataset's event manager
 void removeCardinality(java.lang.Integer cardinality)
          Remove a 'cardinality' property value.
 void removeMaxCardinality(java.lang.Integer maxCardinality)
          Remove a 'maxCardinality' property value.
 void removeMinCardinality(java.lang.Integer minCardinality)
          Remove a 'minCardinality' property value.
 DataRange setOnDataRange()
          Sets the 'onDataRange' property value to an anonymous node
 void setOnDataRange(DataRange onDataRange)
          Sets the 'onDataRange' property value
 DataRange setOnDataRange(org.openrdf.model.Resource resource)
          Sets the 'onDataRange' property value to the given resource, and add's rdf:type properties.
 void setOnProperty(_Property onProperty)
          Sets the 'onProperty' property value
 _Property setOnProperty()
          Sets the 'onProperty' property value to an anonymous node
 _Property setOnProperty(org.openrdf.model.Resource resource)
          Sets the 'onProperty' property value to the given resource, and add's rdf:type properties.
 void unregisterListener(DataRestrictionListener listener)
          Unregister a DataRestrictionListener
 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

getCardinality

public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getCardinality()
                                                                                     throws JastorException
Description copied from interface: DataRestriction
Iterates through the 'cardinality' property values. This Iteartor may be used to remove all such values.

Specified by:
getCardinality in interface DataRestriction
Returns:
Iterator of Integer
Throws:
JastorException
See Also:
DataRestriction.cardinalityProperty

addCardinality

public void addCardinality(java.lang.Integer cardinality)
                    throws JastorException
Description copied from interface: DataRestriction
Add a 'cardinality' property value

Specified by:
addCardinality in interface DataRestriction
Parameters:
cardinality - Integer, the value to add
Throws:
JastorException
See Also:
DataRestriction.cardinalityProperty

removeCardinality

public void removeCardinality(java.lang.Integer cardinality)
                       throws JastorException
Description copied from interface: DataRestriction
Remove a 'cardinality' 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:
removeCardinality in interface DataRestriction
Parameters:
cardinality - Integer, the value to remove
Throws:
JastorException
See Also:
DataRestriction.cardinalityProperty

getMaxCardinality

public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMaxCardinality()
                                                                                        throws JastorException
Description copied from interface: DataRestriction
Iterates through the 'maxCardinality' property values. This Iteartor may be used to remove all such values.

Specified by:
getMaxCardinality in interface DataRestriction
Returns:
Iterator of Integer
Throws:
JastorException
See Also:
DataRestriction.maxCardinalityProperty

addMaxCardinality

public void addMaxCardinality(java.lang.Integer maxCardinality)
                       throws JastorException
Description copied from interface: DataRestriction
Add a 'maxCardinality' property value

Specified by:
addMaxCardinality in interface DataRestriction
Parameters:
maxCardinality - Integer, the value to add
Throws:
JastorException
See Also:
DataRestriction.maxCardinalityProperty

removeMaxCardinality

public void removeMaxCardinality(java.lang.Integer maxCardinality)
                          throws JastorException
Description copied from interface: DataRestriction
Remove a 'maxCardinality' 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:
removeMaxCardinality in interface DataRestriction
Parameters:
maxCardinality - Integer, the value to remove
Throws:
JastorException
See Also:
DataRestriction.maxCardinalityProperty

getMinCardinality

public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMinCardinality()
                                                                                        throws JastorException
Description copied from interface: DataRestriction
Iterates through the 'minCardinality' property values. This Iteartor may be used to remove all such values.

Specified by:
getMinCardinality in interface DataRestriction
Returns:
Iterator of Integer
Throws:
JastorException
See Also:
DataRestriction.minCardinalityProperty

addMinCardinality

public void addMinCardinality(java.lang.Integer minCardinality)
                       throws JastorException
Description copied from interface: DataRestriction
Add a 'minCardinality' property value

Specified by:
addMinCardinality in interface DataRestriction
Parameters:
minCardinality - Integer, the value to add
Throws:
JastorException
See Also:
DataRestriction.minCardinalityProperty

removeMinCardinality

public void removeMinCardinality(java.lang.Integer minCardinality)
                          throws JastorException
Description copied from interface: DataRestriction
Remove a 'minCardinality' 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:
removeMinCardinality in interface DataRestriction
Parameters:
minCardinality - Integer, the value to remove
Throws:
JastorException
See Also:
DataRestriction.minCardinalityProperty

getOnProperty

public _Property getOnProperty()
                        throws JastorException
Description copied from interface: DataRestriction
Gets the 'onProperty' property value

Specified by:
getOnProperty in interface DataRestriction
Returns:
_Property
Throws:
JastorException
See Also:
DataRestriction.onPropertyProperty

setOnProperty

public void setOnProperty(_Property onProperty)
                   throws JastorException
Description copied from interface: DataRestriction
Sets the 'onProperty' property value

Specified by:
setOnProperty in interface DataRestriction
Parameters:
onProperty - _Property, value to set
Throws:
JastorException
See Also:
DataRestriction.onPropertyProperty

setOnProperty

public _Property setOnProperty()
                        throws JastorException
Description copied from interface: DataRestriction
Sets the 'onProperty' property value to an anonymous node

Specified by:
setOnProperty in interface DataRestriction
Returns:
_Property, the created value
Throws:
JastorException
See Also:
DataRestriction.onPropertyProperty

setOnProperty

public _Property setOnProperty(org.openrdf.model.Resource resource)
                        throws JastorException
Description copied from interface: DataRestriction
Sets the 'onProperty' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of _Property with the factory. and calling setOnProperty(org.openanzo.rdfs.dataset._Property onProperty) The resource argument have rdf:type http://www.w3.org/1999/02/22-rdf-syntax-ns#Property. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setOnProperty in interface DataRestriction
Parameters:
resource - Resource must not be be null.
Returns:
_Property, the newly created value
Throws:
JastorException
See Also:
DataRestriction.onPropertyProperty

getOnDataRange

public DataRange getOnDataRange()
                         throws JastorException
Description copied from interface: DataRestriction
Gets the 'onDataRange' property value

Specified by:
getOnDataRange in interface DataRestriction
Returns:
DataRange
Throws:
JastorException
See Also:
DataRestriction.onDataRangeProperty

setOnDataRange

public void setOnDataRange(DataRange onDataRange)
                    throws JastorException
Description copied from interface: DataRestriction
Sets the 'onDataRange' property value

Specified by:
setOnDataRange in interface DataRestriction
Parameters:
onDataRange - DataRange, value to set
Throws:
JastorException
See Also:
DataRestriction.onDataRangeProperty

setOnDataRange

public DataRange setOnDataRange()
                         throws JastorException
Description copied from interface: DataRestriction
Sets the 'onDataRange' property value to an anonymous node

Specified by:
setOnDataRange in interface DataRestriction
Returns:
DataRange, the created value
Throws:
JastorException
See Also:
DataRestriction.onDataRangeProperty

setOnDataRange

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

Specified by:
setOnDataRange in interface DataRestriction
Parameters:
resource - Resource must not be be null.
Returns:
DataRange, the newly created value
Throws:
JastorException
See Also:
DataRestriction.onDataRangeProperty

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(DataRestrictionListener listener)
Description copied from interface: DataRestriction
Register a DataRestrictionListener

Specified by:
registerListener in interface DataRestriction
Parameters:
listener - DataRestrictionListener to register

unregisterListener

public void unregisterListener(DataRestrictionListener listener)
Description copied from interface: DataRestriction
Unregister a DataRestrictionListener

Specified by:
unregisterListener in interface DataRestriction
Parameters:
listener - DataRestrictionListener to unregister


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