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
(@Nullable String uri, @Nullable String localName, @Nullable String label, @Nullable OntologyTermSimple instanceOf) Create a new simple ontology individual.OntologyIndividualSimple
(@Nullable String uri, @Nullable String label, @Nullable OntologyTermSimple instanceOf) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
A comment for the resource, if available, otherwise null.@Nullable OntologyTermSimple
Return the term that this is an instance of.boolean
Whether the resource is marked as obsolete.Methods inherited from class ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
equals, getLabel, getLocalName, getUri, hashCode, unwrap
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getLocalName, getUri, unwrap
-
Constructor Details
-
OntologyIndividualSimple
public OntologyIndividualSimple(@Nullable String uri, @Nullable String label, @Nullable OntologyTermSimple instanceOf) -
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:OntologyResource
A comment for the resource, if available, otherwise null.- Specified by:
getComment
in interfaceOntologyResource
-
isObsolete
public boolean isObsolete()Description copied from interface:OntologyResource
Whether the resource is marked as obsolete.- Specified by:
isObsolete
in interfaceOntologyResource
-
getInstanceOf
Description copied from interface:OntologyIndividual
Return the term that this is an instance of.- Specified by:
getInstanceOf
in interfaceOntologyIndividual
- Returns:
-