org.openanzo.owl.dataset
Class ObjectRestrictionImpl

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

public class ObjectRestrictionImpl
extends DatasetThingImpl
implements ObjectRestriction

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

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



Field Summary
 
Fields inherited from interface org.openanzo.owl.dataset.ObjectRestriction
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.
 Class getOnClass()
          Gets the 'onClass' 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(ObjectRestrictionListener listener)
          Register a ObjectRestrictionListener
 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.
 Class setOnClass()
          Sets the 'onClass' property value to an anonymous node
 void setOnClass(Class onClass)
          Sets the 'onClass' property value
 Class setOnClass(org.openrdf.model.Resource resource)
          Sets the 'onClass' 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(ObjectRestrictionListener listener)
          Unregister a ObjectRestrictionListener
 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: ObjectRestriction
Iterates through the 'cardinality' property values. This Iteartor may be used to remove all such values.

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

addCardinality

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

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

removeCardinality

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

getMaxCardinality

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

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

addMaxCardinality

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

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

removeMaxCardinality

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

getMinCardinality

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

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

addMinCardinality

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

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

removeMinCardinality

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

getOnProperty

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

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

setOnProperty

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

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

setOnProperty

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

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

setOnProperty

public _Property setOnProperty(org.openrdf.model.Resource resource)
                        throws JastorException
Description copied from interface: ObjectRestriction
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 ObjectRestriction
Parameters:
resource - Resource must not be be null.
Returns:
_Property, the newly created value
Throws:
JastorException
See Also:
ObjectRestriction.onPropertyProperty

getOnClass

public Class getOnClass()
                 throws JastorException
Description copied from interface: ObjectRestriction
Gets the 'onClass' property value

Specified by:
getOnClass in interface ObjectRestriction
Returns:
Class
Throws:
JastorException
See Also:
ObjectRestriction.onClassProperty

setOnClass

public void setOnClass(Class onClass)
                throws JastorException
Description copied from interface: ObjectRestriction
Sets the 'onClass' property value

Specified by:
setOnClass in interface ObjectRestriction
Parameters:
onClass - Class, value to set
Throws:
JastorException
See Also:
ObjectRestriction.onClassProperty

setOnClass

public Class setOnClass()
                 throws JastorException
Description copied from interface: ObjectRestriction
Sets the 'onClass' property value to an anonymous node

Specified by:
setOnClass in interface ObjectRestriction
Returns:
Class, the created value
Throws:
JastorException
See Also:
ObjectRestriction.onClassProperty

setOnClass

public Class setOnClass(org.openrdf.model.Resource resource)
                 throws JastorException
Description copied from interface: ObjectRestriction
Sets the 'onClass' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Class with the factory. and calling setOnClass(org.openanzo.owl.dataset.Class onClass) 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:
setOnClass in interface ObjectRestriction
Parameters:
resource - Resource must not be be null.
Returns:
Class, the newly created value
Throws:
JastorException
See Also:
ObjectRestriction.onClassProperty

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

Specified by:
registerListener in interface ObjectRestriction
Parameters:
listener - ObjectRestrictionListener to register

unregisterListener

public void unregisterListener(ObjectRestrictionListener listener)
Description copied from interface: ObjectRestriction
Unregister a ObjectRestrictionListener

Specified by:
unregisterListener in interface ObjectRestriction
Parameters:
listener - ObjectRestrictionListener to unregister


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