|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.ontology.OntologyResourceImpl
gate.creole.ontology.TClassImpl
public class TClassImpl
Represents a single ontology class.
| Field Summary |
|---|
| Fields inherited from class gate.creole.ontology.OntologyResourceImpl |
|---|
comment, instanceProperties, name, ontology, taxonomy, uri |
| Fields inherited from interface gate.creole.ontology.OntologyConstants |
|---|
DIRECT_CLOSURE, TRANSITIVE_CLOSURE |
| Constructor Summary | |
|---|---|
TClassImpl(String anId,
String aName,
String aComment,
Taxonomy anOntology)
Creates a new class given id,name,comment and ontology. |
|
| 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 |
getComment()
Gets the comment of the resource. |
String |
getId()
Gets the id of the class. |
String |
getName()
Gets resource name. |
Set |
getSubClasses(byte closure)
Gets the subclasses according to the desired closure. |
static Set |
getSubClasses(byte closure,
Set classes)
|
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. |
static Set |
getSuperClasses(byte closure,
Set classes)
|
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. |
void |
setComment(String aComment)
Sets the resource comment. |
void |
setName(String aName)
Sets the resource name. |
void |
setURI(String theURI)
Sets the URI of the resource. |
String |
toString()
Dumps the class to string. |
| Methods inherited from class gate.creole.ontology.OntologyResourceImpl |
|---|
addPropertyValue, getOntology, getPropertyValue, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setOntology |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gate.creole.ontology.OntologyResource |
|---|
addPropertyValue, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues |
| Constructor Detail |
|---|
public TClassImpl(String anId,
String aName,
String aComment,
Taxonomy anOntology)
anId - the id of the new classaName - the name of the new classaComment - the comment of the new classanOntology - the ontology to which the new class belongs| Method Detail |
|---|
public String getId()
getId in interface TClasspublic void setURI(String theURI)
OntologyResource
setURI in interface OntologyResourcesetURI in class OntologyResourceImpltheURI - The URI to set.public String getComment()
OntologyResource
getComment in interface OntologyResourcegetComment in class OntologyResourceImplpublic void setComment(String aComment)
OntologyResource
setComment in interface OntologyResourcesetComment in class OntologyResourceImplaComment - The comment to set.public String getName()
OntologyResource
getName in interface OntologyResourcegetName in class OntologyResourceImplpublic void setName(String aName)
OntologyResource
setName in interface OntologyResourcesetName in class OntologyResourceImplaName - The name to set.public void addSubClass(TClass subClass)
TClass
addSubClass in interface TClasssubClass - the subClass to be added.public void addSuperClass(TClass superClass)
TClass
addSuperClass in interface TClasssuperClass - the super class to be addedpublic void removeSubClass(TClass subClass)
TClass
removeSubClass in interface TClasssubClass - the sub class to be removedpublic void removeSuperClass(TClass superClass)
TClass
removeSuperClass in interface TClasssuperClass - the super class to be removedpublic Set getSubClasses(byte closure)
TClass
getSubClasses in interface TClassclosure - either DIRECT_CLOSURE or TRASITIVE_CLOSURE
public Set getSuperClasses(byte closure)
TClass
getSuperClasses in interface TClassclosure - either DIRECT_CLOSURE or TRASITIVE_CLOSURE
public void inferSubClassesTransitiveClosure()
TClass
inferSubClassesTransitiveClosure in interface TClasspublic void inferSuperClassesTransitiveClosure()
TClass
inferSuperClassesTransitiveClosure in interface TClasspublic boolean isTopClass()
TClass
isTopClass in interface TClasspublic String toString()
TClass
toString in interface TClasstoString in class Object
public static Set getSubClasses(byte closure,
Set classes)
public static Set getSuperClasses(byte closure,
Set classes)
public ArrayList getSubClassesVSDistance()
TClass
getSubClassesVSDistance in interface TClasspublic ArrayList getSuperClassesVSDistance()
TClass
getSuperClassesVSDistance in interface TClasspublic boolean equals(Object o)
TClass
equals in interface TClassequals in class Objecto - 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 | |||||||||