|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.ontology.PropertyImpl
Constructor Summary | |
PropertyImpl(String aName,
OClass aDomain,
Ontology aKB)
|
Method Summary | |
OClass |
getDomain()
Returns the domain of a property. |
String |
getName()
|
Ontology |
getOntology()
Gets the ontology to which the class belongs. |
Set |
getSamePropertyAs()
Returns a set of all KBProperty instances that are in SamePropertyAs relation with this property. |
Set |
getSubPropertyOf()
Return a set of all local names of properties that are in a subPropertyOf relation with this property. |
String |
getURI()
Returns the URI of this property. |
void |
setSamePropertyAs(Property theProperty)
Add a samePropertyAs relation between the two properties. |
void |
setSubPropertyOf(String propertyName)
Add a SubPropertyOf relation between the given property and this. |
void |
setURI(String theURI)
Sets the URI of the property |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.creole.ontology.Property |
getRange, isValueCompatible |
Constructor Detail |
public PropertyImpl(String aName, OClass aDomain, Ontology aKB)
Method Detail |
public String getName()
getName
in interface Property
public String getURI()
Property
getURI
in interface Property
public void setURI(String theURI)
Property
setURI
in interface Property
theURI
- public void setSamePropertyAs(Property theProperty)
Property
setSamePropertyAs
in interface Property
theProperty
- public Set getSamePropertyAs()
Property
getSamePropertyAs
in interface Property
Set
value.public void setSubPropertyOf(String propertyName)
Property
setSubPropertyOf
in interface Property
propertyName
- public Set getSubPropertyOf()
Property
getSubPropertyOf
in interface Property
Set
value.public OClass getDomain()
Property
getDomain
in interface Property
public Ontology getOntology()
Property
getOntology
in interface Property
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |