org.openanzo.owl
Class RestrictionImpl

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

public class RestrictionImpl
extends GraphThingImpl
implements Restriction

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

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



Field Summary
 
Fields inherited from interface org.openanzo.owl.Restriction
TYPE
 
Method Summary
 GraphThing addAllValuesFrom()
          Adds an anonymous value for the 'allValuesFrom' property
 void addAllValuesFrom(GraphThing allValuesFrom)
          Adds a value for the 'allValuesFrom' property
 GraphThing addAllValuesFrom(org.openrdf.model.Resource resource)
          Adds a value for the 'allValuesFrom' property.
 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
 GraphThing addSomeValuesFrom()
          Adds an anonymous value for the 'someValuesFrom' property
 void addSomeValuesFrom(GraphThing someValuesFrom)
          Adds a value for the 'someValuesFrom' property
 GraphThing addSomeValuesFrom(org.openrdf.model.Resource resource)
          Adds a value for the 'someValuesFrom' property.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getAllValuesFrom()
          Get an Iterator the 'allValuesFrom' property values.
 info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getCardinality()
          Iterates through the 'cardinality' property values.
 java.lang.String getHasValue()
          Gets the 'hasValue' property value
 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.
 _Property getOnProperty()
          Gets the 'onProperty' property value
 info.aduna.collections.iterators.CloseableIterator<GraphThing> getSomeValuesFrom()
          Get an Iterator the 'someValuesFrom' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeAllValuesFrom(GraphThing allValuesFrom)
          Removes a value for the 'allValuesFrom' property.
 void removeAllValuesFrom(org.openrdf.model.Resource allValuesFrom)
          Remove a 'allValuesFrom' property value.
 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.
 void removeSomeValuesFrom(GraphThing someValuesFrom)
          Removes a value for the 'someValuesFrom' property.
 void removeSomeValuesFrom(org.openrdf.model.Resource someValuesFrom)
          Remove a 'someValuesFrom' property value.
 void setHasValue(java.lang.String hasValue)
          Sets the 'hasValue' property value
 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.
 
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

getCardinality

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

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

addCardinality

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

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

removeCardinality

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

getMaxCardinality

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

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

addMaxCardinality

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

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

removeMaxCardinality

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

getMinCardinality

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

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

addMinCardinality

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

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

removeMinCardinality

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

getOnProperty

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

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

setOnProperty

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

Specified by:
setOnProperty in interface Restriction
Parameters:
onProperty - _Property
Throws:
JastorException
See Also:
Restriction.onPropertyProperty

setOnProperty

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

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

setOnProperty

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

getHasValue

public java.lang.String getHasValue()
                             throws JastorException
Description copied from interface: Restriction
Gets the 'hasValue' property value

Specified by:
getHasValue in interface Restriction
Returns:
String
Throws:
JastorException
See Also:
Restriction.hasValueProperty

setHasValue

public void setHasValue(java.lang.String hasValue)
                 throws JastorException
Description copied from interface: Restriction
Sets the 'hasValue' property value

Specified by:
setHasValue in interface Restriction
Parameters:
hasValue - String
Throws:
JastorException
See Also:
Restriction.hasValueProperty

getAllValuesFrom

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

Specified by:
getAllValuesFrom in interface Restriction
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

addAllValuesFrom

public void addAllValuesFrom(GraphThing allValuesFrom)
                      throws JastorException
Description copied from interface: Restriction
Adds a value for the 'allValuesFrom' property

Specified by:
addAllValuesFrom in interface Restriction
Parameters:
allValuesFrom - The GraphThing to add
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

addAllValuesFrom

public GraphThing addAllValuesFrom()
                            throws JastorException
Description copied from interface: Restriction
Adds an anonymous value for the 'allValuesFrom' property

Specified by:
addAllValuesFrom in interface Restriction
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

addAllValuesFrom

public GraphThing addAllValuesFrom(org.openrdf.model.Resource resource)
                            throws JastorException
Description copied from interface: Restriction
Adds a value for the 'allValuesFrom' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addAllValuesFrom(org.openanzo.jastor.GraphThing allValuesFrom) 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:
addAllValuesFrom in interface Restriction
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.jastor.GraphThing created
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

removeAllValuesFrom

public void removeAllValuesFrom(GraphThing allValuesFrom)
                         throws JastorException
Description copied from interface: Restriction
Removes a value for the 'allValuesFrom' 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:
removeAllValuesFrom in interface Restriction
Parameters:
allValuesFrom - The GraphThing to remove
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

removeAllValuesFrom

public void removeAllValuesFrom(org.openrdf.model.Resource allValuesFrom)
                         throws JastorException
Description copied from interface: Restriction
Remove a 'allValuesFrom' 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:
removeAllValuesFrom in interface Restriction
Parameters:
allValuesFrom - GraphThing, the value to remove
Throws:
JastorException
See Also:
Restriction.allValuesFromProperty

getSomeValuesFrom

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

Specified by:
getSomeValuesFrom in interface Restriction
Returns:
Iterator of GraphThing
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty

addSomeValuesFrom

public void addSomeValuesFrom(GraphThing someValuesFrom)
                       throws JastorException
Description copied from interface: Restriction
Adds a value for the 'someValuesFrom' property

Specified by:
addSomeValuesFrom in interface Restriction
Parameters:
someValuesFrom - The GraphThing to add
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty

addSomeValuesFrom

public GraphThing addSomeValuesFrom()
                             throws JastorException
Description copied from interface: Restriction
Adds an anonymous value for the 'someValuesFrom' property

Specified by:
addSomeValuesFrom in interface Restriction
Returns:
The anoymous GraphThing created
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty

addSomeValuesFrom

public GraphThing addSomeValuesFrom(org.openrdf.model.Resource resource)
                             throws JastorException
Description copied from interface: Restriction
Adds a value for the 'someValuesFrom' property. This method is equivalent constructing a new instance of GraphThing with the factory and calling addSomeValuesFrom(org.openanzo.jastor.GraphThing someValuesFrom) 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:
addSomeValuesFrom in interface Restriction
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.jastor.GraphThing created
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty

removeSomeValuesFrom

public void removeSomeValuesFrom(GraphThing someValuesFrom)
                          throws JastorException
Description copied from interface: Restriction
Removes a value for the 'someValuesFrom' 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:
removeSomeValuesFrom in interface Restriction
Parameters:
someValuesFrom - The GraphThing to remove
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty

removeSomeValuesFrom

public void removeSomeValuesFrom(org.openrdf.model.Resource someValuesFrom)
                          throws JastorException
Description copied from interface: Restriction
Remove a 'someValuesFrom' 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:
removeSomeValuesFrom in interface Restriction
Parameters:
someValuesFrom - GraphThing, the value to remove
Throws:
JastorException
See Also:
Restriction.someValuesFromProperty


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