|
|||||||||||
| 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 | |
private Set |
disjointClassesSet
|
private Set |
propertiesSet
|
private Set |
sameClassesSet
|
| Fields inherited from class gate.creole.ontology.TClassImpl |
comment, directSubClasses, directSuperClasses, id, name, ontology, subClassesTransitiveClosure, superClassesTransitiveClosure, uri |
| 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 |
| Field Detail |
private Set disjointClassesSet
private Set sameClassesSet
private Set propertiesSet
| 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 belongs| Method Detail |
public void setDisjointWith(OClass theClass)
OClass
setDisjointWith in interface OClasspublic void setSameClassAs(OClass theClass)
OClass
setSameClassAs in interface OClasspublic Set getDisjointClasses()
OClass
getDisjointClasses in interface OClasspublic Set getSameClasses()
OClass
getSameClasses in interface OClasspublic Set getProperties()
OClass
getProperties in interface OClasspublic Set getPropertiesByName(String name)
OClass
getPropertiesByName in interface OClassname -
Set value.public Set getInheritedProperties()
OClass
getInheritedProperties in interface OClasspublic boolean addProperty(Property theProperty)
public String toString()
TClass
toString in interface TClasstoString in class TClassImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||