|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.OntObject
edu.lehigh.swat.hawk.storage.simplememory.OntClass
edu.lehigh.swat.hawk.storage.simplememory.PropertyRestriction
public class PropertyRestriction
A simple implementation of core.PropertyRestriction in memory.
Field Summary |
---|
Fields inherited from interface edu.lehigh.swat.hawk.core.PropertyRestriction |
---|
INFINITY |
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.OntObject |
---|
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject |
---|
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Constructor Detail |
---|
public PropertyRestriction()
Method Detail |
---|
public ObjectId getOnProperty()
getOnProperty
in interface PropertyRestriction
public void setOnProperty(ObjectId p)
setOnProperty
in interface PropertyRestriction
public ObjectId getAllValuesFrom()
getAllValuesFrom
in interface PropertyRestriction
public void setAllValuesFrom(ObjectId c)
setAllValuesFrom
in interface PropertyRestriction
public ObjectId getSomeValuesFrom()
getSomeValuesFrom
in interface PropertyRestriction
public void setSomeValuesFrom(ObjectId c)
setSomeValuesFrom
in interface PropertyRestriction
public int getMinCardinality()
getMinCardinality
in interface PropertyRestriction
public void setMinCardinality(int n)
setMinCardinality
in interface PropertyRestriction
public int getMaxCardinality()
getMaxCardinality
in interface PropertyRestriction
public void setMaxCardinality(int n)
setMaxCardinality
in interface PropertyRestriction
public ObjectId getHasValue()
getHasValue
in interface PropertyRestriction
public void setHasValue(ObjectId i)
setHasValue
in interface PropertyRestriction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |