edu.lehigh.swat.hawk.storage.simplememory
Class PropertyRestriction

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.SerializableClass
      extended by edu.lehigh.swat.hawk.storage.simplememory.OntObject
          extended by edu.lehigh.swat.hawk.storage.simplememory.OntClass
              extended by edu.lehigh.swat.hawk.storage.simplememory.PropertyRestriction
All Implemented Interfaces:
OntClass, OntObject, PropertyRestriction, java.io.Serializable
Direct Known Subclasses:
PropertyRestriction

public class PropertyRestriction
extends OntClass
implements PropertyRestriction

A simple implementation of core.PropertyRestriction in memory.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface edu.lehigh.swat.hawk.core.PropertyRestriction
INFINIT
 
Constructor Summary
PropertyRestriction()
          Constructor
 
Method Summary
 ObjectId getAllValuesFrom()
          Get the specified restriction class of 'allValuesFrom'.
 ObjectId getHasValue()
          Get the specified value of 'hasValue'.
 int getMaxCardinality()
          Get the specified number of 'maxCardinality'.
 int getMinCardinality()
          Get the specified number of 'minCardinality'.
 ObjectId getOnProperty()
          Get the property restricted on.
 ObjectId getSomeValuesFrom()
          Get the specified restriction class of 'someValuesFrom'.
 void setAllValuesFrom(ObjectId c)
          Set the specified restriction class of 'allValuesFrom'.
 void setHasValue(ObjectId i)
          Set the specified value of 'hasValue'.
 void setMaxCardinality(int n)
          Set the specified number of 'maxCardinality'.
 void setMinCardinality(int n)
          Set the specified number of 'minCardinality'.
 void setOnProperty(ObjectId p)
          Set the property restricted on.
 void setSomeValuesFrom(ObjectId c)
          Set the specified restriction class of 'someValuesFrom'.
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.OntClass
addComplementOf, addDisjointWith, addEquivalentClass, addIntersectionOf, addOneOf, addPropertyRestriction, addSubClass, addSuperClass, addUnionOf, deleteComplementOf, deleteDisjointWith, deleteEquivalentClass, deleteIntersectionOf, deleteOneOf, deletePropertyRestriction, deleteSubClass, deleteSuperClass, deleteUnionOf, getComplementOfs, getDirectSubClasses, getDirectSuperClasses, getDisjointWith, getEquivalentClasses, getIntersectionOfs, getOneOfs, getPropertyRestrictions, getUnionOfs, isDeprecated, isSatisfiabele, setDeprecated, setSatisfiable
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.OntObject
addDescription, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.lehigh.swat.hawk.core.OntClass
addComplementOf, addDisjointWith, addEquivalentClass, addIntersectionOf, addOneOf, addPropertyRestriction, addSubClass, addSuperClass, addUnionOf, deleteComplementOf, deleteDisjointWith, deleteEquivalentClass, deleteIntersectionOf, deleteOneOf, deletePropertyRestriction, deleteSubClass, deleteSuperClass, deleteUnionOf, getComplementOfs, getDirectSubClasses, getDirectSuperClasses, getDisjointWith, getEquivalentClasses, getIntersectionOfs, getOneOfs, getPropertyRestrictions, getUnionOfs, isDeprecated, isSatisfiabele, setDeprecated, setSatisfiable
 
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject
addDescription, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 

Constructor Detail

PropertyRestriction

public PropertyRestriction()
Constructor

Method Detail

getOnProperty

public ObjectId getOnProperty()
Get the property restricted on.

Specified by:
getOnProperty in interface PropertyRestriction

setOnProperty

public void setOnProperty(ObjectId p)
Set the property restricted on.

Specified by:
setOnProperty in interface PropertyRestriction

getAllValuesFrom

public ObjectId getAllValuesFrom()
Get the specified restriction class of 'allValuesFrom'.

Specified by:
getAllValuesFrom in interface PropertyRestriction

setAllValuesFrom

public void setAllValuesFrom(ObjectId c)
Set the specified restriction class of 'allValuesFrom'.

Specified by:
setAllValuesFrom in interface PropertyRestriction

getSomeValuesFrom

public ObjectId getSomeValuesFrom()
Get the specified restriction class of 'someValuesFrom'.

Specified by:
getSomeValuesFrom in interface PropertyRestriction

setSomeValuesFrom

public void setSomeValuesFrom(ObjectId c)
Set the specified restriction class of 'someValuesFrom'.

Specified by:
setSomeValuesFrom in interface PropertyRestriction

getMinCardinality

public int getMinCardinality()
Get the specified number of 'minCardinality'.

Specified by:
getMinCardinality in interface PropertyRestriction

setMinCardinality

public void setMinCardinality(int n)
Set the specified number of 'minCardinality'.

Specified by:
setMinCardinality in interface PropertyRestriction

getMaxCardinality

public int getMaxCardinality()
Get the specified number of 'maxCardinality'.

Specified by:
getMaxCardinality in interface PropertyRestriction

setMaxCardinality

public void setMaxCardinality(int n)
Set the specified number of 'maxCardinality'.

Specified by:
setMaxCardinality in interface PropertyRestriction

getHasValue

public ObjectId getHasValue()
Get the specified value of 'hasValue'.

Specified by:
getHasValue in interface PropertyRestriction

setHasValue

public void setHasValue(ObjectId i)
Set the specified value of 'hasValue'.

Specified by:
setHasValue in interface PropertyRestriction