|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.ontology.TClassImpl
gate.creole.ontology.OClassImpl
Field Summary |
Fields inherited from interface gate.creole.ontology.TClass |
DIRECT_CLOSURE, TRANSITIVE_CLOSURE |
Constructor Summary | |
OClassImpl(String anId,
String aName,
String aComment,
Ontology anOntology)
Creates a new class given id,name,comment and ontology. |
Method Summary | |
boolean |
addProperty(Property theProperty)
|
Set |
getDisjointClasses()
Returns a set of all classes that are disjoint with ours. |
Set |
getInheritedProperties()
This method supplies all KBProperty inherited from the superclasses of the given class. |
Set |
getProperties()
Returns a set of all KBProperty (ako relations) for which this class is the domain (first predicate). |
Set |
getPropertiesByName(String name)
Returns the set of properties with the given name. |
Set |
getSameClasses()
Returns a set of all classes that are the same as ours. |
void |
setDisjointWith(OClass theClass)
Indicates that these are disjoint classes |
void |
setSameClassAs(OClass theClass)
Indicates that these classes are the same |
String |
toString()
Dumps the class to string. |
Methods inherited from class gate.creole.ontology.TClassImpl |
addSubClass, addSuperClass, equals, getComment, getId, getName, getOntology, getSubClasses, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClasses, getSuperClassesVSDistance, getURI, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass, setComment, setName, setURI |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gate.creole.ontology.TClass |
addSubClass, addSuperClass, equals, getComment, getId, getName, getOntology, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClassesVSDistance, getURI, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass, setComment, setName, setURI |
Constructor Detail |
public OClassImpl(String anId, String aName, String aComment, Ontology 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 belongsMethod Detail |
public void setDisjointWith(OClass theClass)
OClass
setDisjointWith
in interface OClass
public void setSameClassAs(OClass theClass)
OClass
setSameClassAs
in interface OClass
public Set getDisjointClasses()
OClass
getDisjointClasses
in interface OClass
public Set getSameClasses()
OClass
getSameClasses
in interface OClass
public Set getProperties()
OClass
getProperties
in interface OClass
public Set getPropertiesByName(String name)
OClass
getPropertiesByName
in interface OClass
name
-
Set
value.public Set getInheritedProperties()
OClass
getInheritedProperties
in interface OClass
public boolean addProperty(Property theProperty)
public String toString()
TClass
toString
in interface TClass
toString
in class TClassImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |