gate.creole.ontology
Class OClassImpl
java.lang.Object
gate.creole.ontology.OntologyResourceImpl
gate.creole.ontology.TClassImpl
gate.creole.ontology.OClassImpl
- All Implemented Interfaces:
- OClass, OntologyConstants, OntologyResource, TClass
public class OClassImpl
- extends TClassImpl
- implements OClass
Methods inherited from class gate.creole.ontology.TClassImpl |
addSubClass, addSuperClass, equals, getComment, getId, getName, getSubClasses, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClasses, getSuperClassesVSDistance, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass, setComment, setName, setURI |
Methods inherited from interface gate.creole.ontology.TClass |
addSubClass, addSuperClass, equals, getId, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClassesVSDistance, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass |
Methods inherited from interface gate.creole.ontology.OntologyResource |
addPropertyValue, getComment, getName, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setURI |
OClassImpl
public OClassImpl(String anId,
String aName,
String aComment,
Ontology anOntology)
- Creates a new class given id,name,comment and ontology.
- Parameters:
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
setDisjointWith
public void setDisjointWith(OClass theClass)
- Description copied from interface:
OClass
- Indicates that these are disjoint classes
- Specified by:
setDisjointWith
in interface OClass
setSameClassAs
public void setSameClassAs(OClass theClass)
- Description copied from interface:
OClass
- Indicates that these classes are the same
- Specified by:
setSameClassAs
in interface OClass
getDisjointClasses
public Set getDisjointClasses()
- Description copied from interface:
OClass
- Returns a set of all classes that are disjoint with ours. Null if no such
classes.
- Specified by:
getDisjointClasses
in interface OClass
getSameClasses
public Set getSameClasses()
- Description copied from interface:
OClass
- Returns a set of all classes that are the same as ours. Null if no such
classes.
- Specified by:
getSameClasses
in interface OClass
toString
public String toString()
- Description copied from interface:
TClass
- Dumps the class to string.
- Specified by:
toString
in interface TClass
- Overrides:
toString
in class TClassImpl
- Returns:
- the string representation of the class.