|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jastor.GraphThingImpl
org.openanzo.owl.RestrictionImpl
public class RestrictionImpl
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 |
|---|
public java.util.Collection<org.openrdf.model.Statement> listStatements()
CoreThing
listStatements in interface CoreThinglistStatements in class GraphThingImpl
public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getCardinality()
throws JastorException
Restriction
getCardinality in interface RestrictionIterator of Integer
JastorExceptionRestriction.cardinalityProperty
public void addCardinality(java.lang.Integer cardinality)
throws JastorException
Restriction
addCardinality in interface Restrictioncardinality - Integer, the value to add
JastorExceptionRestriction.cardinalityProperty
public void removeCardinality(java.lang.Integer cardinality)
throws JastorException
Restriction
removeCardinality in interface Restrictioncardinality - Integer, the value to remove
JastorExceptionRestriction.cardinalityProperty
public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMaxCardinality()
throws JastorException
Restriction
getMaxCardinality in interface RestrictionIterator of Integer
JastorExceptionRestriction.maxCardinalityProperty
public void addMaxCardinality(java.lang.Integer maxCardinality)
throws JastorException
Restriction
addMaxCardinality in interface RestrictionmaxCardinality - Integer, the value to add
JastorExceptionRestriction.maxCardinalityProperty
public void removeMaxCardinality(java.lang.Integer maxCardinality)
throws JastorException
Restriction
removeMaxCardinality in interface RestrictionmaxCardinality - Integer, the value to remove
JastorExceptionRestriction.maxCardinalityProperty
public info.aduna.collections.iterators.CloseableIterator<java.lang.Integer> getMinCardinality()
throws JastorException
Restriction
getMinCardinality in interface RestrictionIterator of Integer
JastorExceptionRestriction.minCardinalityProperty
public void addMinCardinality(java.lang.Integer minCardinality)
throws JastorException
Restriction
addMinCardinality in interface RestrictionminCardinality - Integer, the value to add
JastorExceptionRestriction.minCardinalityProperty
public void removeMinCardinality(java.lang.Integer minCardinality)
throws JastorException
Restriction
removeMinCardinality in interface RestrictionminCardinality - Integer, the value to remove
JastorExceptionRestriction.minCardinalityProperty
public _Property getOnProperty()
throws JastorException
Restriction
getOnProperty in interface Restriction_Property
JastorExceptionRestriction.onPropertyProperty
public void setOnProperty(_Property onProperty)
throws JastorException
Restriction
setOnProperty in interface RestrictiononProperty - _Property
JastorExceptionRestriction.onPropertyProperty
public _Property setOnProperty()
throws JastorException
Restriction
setOnProperty in interface Restriction_Property, the created value
JastorExceptionRestriction.onPropertyProperty
public _Property setOnProperty(org.openrdf.model.Resource resource)
throws JastorException
Restriction_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.
setOnProperty in interface Restrictionresource - Resource must not be be null.
_Property, the newly created value
JastorExceptionRestriction.onPropertyProperty
public java.lang.String getHasValue()
throws JastorException
Restriction
getHasValue in interface RestrictionString
JastorExceptionRestriction.hasValueProperty
public void setHasValue(java.lang.String hasValue)
throws JastorException
Restriction
setHasValue in interface RestrictionhasValue - String
JastorExceptionRestriction.hasValueProperty
public info.aduna.collections.iterators.CloseableIterator<GraphThing> getAllValuesFrom()
throws JastorException
Restriction
getAllValuesFrom in interface RestrictionIterator of GraphThing
JastorExceptionRestriction.allValuesFromProperty
public void addAllValuesFrom(GraphThing allValuesFrom)
throws JastorException
Restriction
addAllValuesFrom in interface RestrictionallValuesFrom - The GraphThing to add
JastorExceptionRestriction.allValuesFromProperty
public GraphThing addAllValuesFrom()
throws JastorException
Restriction
addAllValuesFrom in interface RestrictionGraphThing created
JastorExceptionRestriction.allValuesFromProperty
public GraphThing addAllValuesFrom(org.openrdf.model.Resource resource)
throws JastorException
RestrictionGraphThing 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.
addAllValuesFrom in interface Restrictionresource - The Resource to add
JastorExceptionRestriction.allValuesFromProperty
public void removeAllValuesFrom(GraphThing allValuesFrom)
throws JastorException
Restriction
removeAllValuesFrom in interface RestrictionallValuesFrom - The GraphThing to remove
JastorExceptionRestriction.allValuesFromProperty
public void removeAllValuesFrom(org.openrdf.model.Resource allValuesFrom)
throws JastorException
Restriction
removeAllValuesFrom in interface RestrictionallValuesFrom - GraphThing, the value to remove
JastorExceptionRestriction.allValuesFromProperty
public info.aduna.collections.iterators.CloseableIterator<GraphThing> getSomeValuesFrom()
throws JastorException
Restriction
getSomeValuesFrom in interface RestrictionIterator of GraphThing
JastorExceptionRestriction.someValuesFromProperty
public void addSomeValuesFrom(GraphThing someValuesFrom)
throws JastorException
Restriction
addSomeValuesFrom in interface RestrictionsomeValuesFrom - The GraphThing to add
JastorExceptionRestriction.someValuesFromProperty
public GraphThing addSomeValuesFrom()
throws JastorException
Restriction
addSomeValuesFrom in interface RestrictionGraphThing created
JastorExceptionRestriction.someValuesFromProperty
public GraphThing addSomeValuesFrom(org.openrdf.model.Resource resource)
throws JastorException
RestrictionGraphThing 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.
addSomeValuesFrom in interface Restrictionresource - The Resource to add
JastorExceptionRestriction.someValuesFromProperty
public void removeSomeValuesFrom(GraphThing someValuesFrom)
throws JastorException
Restriction
removeSomeValuesFrom in interface RestrictionsomeValuesFrom - The GraphThing to remove
JastorExceptionRestriction.someValuesFromProperty
public void removeSomeValuesFrom(org.openrdf.model.Resource someValuesFrom)
throws JastorException
Restriction
removeSomeValuesFrom in interface RestrictionsomeValuesFrom - GraphThing, the value to remove
JastorExceptionRestriction.someValuesFromProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||