|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TClass
An Interface representing a single ontology class
Field Summary |
---|
Fields inherited from interface gate.creole.ontology.OntologyConstants |
---|
DIRECT_CLOSURE, TRANSITIVE_CLOSURE |
Method Summary | |
---|---|
void |
addSubClass(TClass subClass)
Adds a sub class to this class. |
void |
addSuperClass(TClass superClass)
Adds a super class to this class. |
boolean |
equals(Object o)
Checks the equality of two classes. |
String |
getId()
Gets the id. |
Set |
getSubClasses(byte closure)
Gets the subclasses according to the desired closure. |
ArrayList |
getSubClassesVSDistance()
Gets the sub classes, and returns them in an array list where on each index there is a collection of the sub classes at distance - the index. |
Set |
getSuperClasses(byte closure)
Gets the super classes according to the desired closure. |
ArrayList |
getSuperClassesVSDistance()
Gets the super classes, and returns them in an array list where on each index there is a collection of the super classes at distance - the index. |
void |
inferSubClassesTransitiveClosure()
Infers the sub classes transitive closure. |
void |
inferSuperClassesTransitiveClosure()
Infers the super classes transitive closure. |
boolean |
isTopClass()
Checks whether this class is a top. |
void |
removeSubClass(TClass subClass)
Removes a sub class. |
void |
removeSuperClass(TClass superClass)
Removes a super class. |
String |
toString()
Dumps the class to string. |
Methods inherited from interface gate.creole.ontology.OntologyResource |
---|
addPropertyValue, getComment, getName, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setURI |
Method Detail |
---|
String getId()
void addSubClass(TClass subClass)
subClass
- the subClass to be added.void addSuperClass(TClass superClass)
superClass
- the super class to be addedvoid removeSubClass(TClass subClass)
subClass
- the sub class to be removedvoid removeSuperClass(TClass superClass)
superClass
- the super class to be removedSet getSubClasses(byte closure)
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
NoSuchClosureTypeException
- if an unknown closure is specified.Set getSuperClasses(byte closure)
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
NoSuchClosureTypeException
- if an unknown closure is specified.void inferSubClassesTransitiveClosure()
void inferSuperClassesTransitiveClosure()
boolean isTopClass()
String toString()
toString
in class Object
ArrayList getSuperClassesVSDistance()
ArrayList getSubClassesVSDistance()
boolean equals(Object o)
equals
in class Object
o
- the ontology class to be tested versus this one.
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |