GATE
Version 3.1-2270

gate.creole.ontology
Class OClassImpl

java.lang.Object
  extended by gate.creole.ontology.OntologyResourceImpl
      extended by gate.creole.ontology.TClassImpl
          extended by gate.creole.ontology.OClassImpl
All Implemented Interfaces:
OClass, OntologyConstants, OntologyResource, TClass

public class OClassImpl
extends TClassImpl
implements OClass


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
OClassImpl(String anId, String aName, String aComment, Ontology anOntology)
          Creates a new class given id,name,comment and ontology.
 
Method Summary
 Set getDisjointClasses()
          Returns a set of all classes that are disjoint with ours.
 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, getSubClasses, getSubClasses, getSubClassesVSDistance, getSuperClasses, getSuperClasses, getSuperClassesVSDistance, inferSubClassesTransitiveClosure, inferSuperClassesTransitiveClosure, isTopClass, removeSubClass, removeSuperClass, setComment, setName, setURI
 
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.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
 

Constructor Detail

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 class
aName - the name of the new class
aComment - the comment of the new class
anOntology - the ontology to which the new class belongs
Method Detail

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.

GATE
Version 3.1-2270