|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An Interface representing a single ontology class
Field Summary | |
static byte |
DIRECT_CLOSURE
denotes a direct closure(no transitivity) |
static byte |
TRANSITIVE_CLOSURE
denotes atransitive closure |
Method Summary | |
void |
addSubClass(OClass subClass)
Adds a sub class to this class. |
void |
addSuperClass(OClass superClass)
Adds a super class to this class. |
boolean |
equals(Object o)
Checks the equality of two classes. |
String |
getComment()
Gets the comment of the class. |
String |
getId()
Gets the id. |
String |
getName()
Gets class name. |
Ontology |
getOntology()
Gets the ontology to which the class belongs. |
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. |
String |
getURI()
Gets the URI of the class. |
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(OClass subClass)
Removes a sub class. |
void |
removeSuperClass(OClass superClass)
Removes a super class. |
void |
setComment(String aComment)
Sets the class comment. |
void |
setName(String aName)
Sets the class name. |
void |
setURI(String theURI)
Sets the URI of the class. |
String |
toString()
Dumps the class to string. |
Field Detail |
public static final byte DIRECT_CLOSURE
public static final byte TRANSITIVE_CLOSURE
Method Detail |
public String getId()
public Ontology getOntology()
public String getURI()
public void setURI(String theURI)
theURI
- the new URI to be setpublic String getComment()
public void setComment(String aComment)
aComment
- the comment to be setpublic String getName()
public void setName(String aName)
aName
- the new name of the classpublic void addSubClass(OClass subClass)
subClass
- the subClass to be added.public void addSuperClass(OClass superClass)
superClass
- the super class to be addedpublic void removeSubClass(OClass subClass)
subClass
- the sub class to be removedpublic void removeSuperClass(OClass superClass)
superClass
- the super class to be removedpublic Set getSubClasses(byte closure) throws NoSuchClosureTypeException
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
NoSuchClosureTypeException
- if an unknown closure is specified.public Set getSuperClasses(byte closure) throws NoSuchClosureTypeException
closure
- either DIRECT_CLOSURE or TRASITIVE_CLOSURE
NoSuchClosureTypeException
- if an unknown closure is specified.public void inferSubClassesTransitiveClosure()
public void inferSuperClassesTransitiveClosure()
public boolean isTopClass()
public String toString()
public ArrayList getSuperClassesVSDistance()
public ArrayList getSubClassesVSDistance()
public boolean equals(Object o)
o
- the ontology class to be tested versus this one.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |