Package ubic.basecode.ontology.simple
Class OntologyIndividualSimple
java.lang.Object
ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
ubic.basecode.ontology.simple.OntologyIndividualSimple
- All Implemented Interfaces:
Serializable,OntologyIndividual,OntologyResource
public class OntologyIndividualSimple
extends AbstractOntologyResourceSimple
implements OntologyIndividual
- Author:
- poirigui
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOntologyIndividualSimple(String uri, String localName, String label, OntologyTermSimple instanceOf) Create a new simple ontology individual.OntologyIndividualSimple(String uri, String label, OntologyTermSimple instanceOf) -
Method Summary
Modifier and TypeMethodDescriptionA comment for the resource, if available, otherwise null.Return the term that this is an instance of.booleanWhether the resource is marked as obsolete.Methods inherited from class ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
equals, getLabel, getLocalName, getUri, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getLocalName, getUri
-
Constructor Details
-
OntologyIndividualSimple
-
OntologyIndividualSimple
public OntologyIndividualSimple(@Nullable String uri, @Nullable String localName, @Nullable String label, @Nullable OntologyTermSimple instanceOf) Create a new simple ontology individual.- Parameters:
uri- a URI for the term, of null for a free-text termlabel- a label for the terminstanceOf- the term this individual is an instance of which must be simple since this class has to beSerializable.
-
-
Method Details
-
getComment
Description copied from interface:OntologyResourceA comment for the resource, if available, otherwise null.- Specified by:
getCommentin interfaceOntologyResource
-
isObsolete
public boolean isObsolete()Description copied from interface:OntologyResourceWhether the resource is marked as obsolete.- Specified by:
isObsoletein interfaceOntologyResource
-
getInstanceOf
Description copied from interface:OntologyIndividualReturn the term that this is an instance of.- Specified by:
getInstanceOfin interfaceOntologyIndividual- Returns:
-