Package ubic.basecode.ontology.simple
Class AbstractOntologyResourceSimple
- java.lang.Object
-
- ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
-
- All Implemented Interfaces:
Serializable,OntologyResource
- Direct Known Subclasses:
OntologyIndividualSimple,OntologyPropertySimple,OntologyTermSimple
public abstract class AbstractOntologyResourceSimple extends Object implements OntologyResource, Serializable
- Author:
- poirigui
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOntologyResourceSimple(String uri, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetComment()A comment for the resource, if available, otherwise null.StringgetLabel()A label, if known, otherwise null.StringgetLocalName()A local name for this resource.StringgetUri()A URI if known, otherwise null.inthashCode()booleanisObsolete()Whether the resource is marked as obsolete.
-
-
-
Method Detail
-
getLocalName
public String getLocalName()
Description copied from interface:OntologyResourceA local name for this resource.- Specified by:
getLocalNamein interfaceOntologyResource
-
getLabel
@Nullable public String getLabel()
Description copied from interface:OntologyResourceA label, if known, otherwise null.- Specified by:
getLabelin interfaceOntologyResource
-
getComment
@Nullable public String getComment()
Description copied from interface:OntologyResourceA comment for the resource, if available, otherwise null.- Specified by:
getCommentin interfaceOntologyResource
-
getUri
@Nullable public String getUri()
Description copied from interface:OntologyResourceA URI if known, otherwise null.- Specified by:
getUriin interfaceOntologyResource
-
isObsolete
public boolean isObsolete()
Description copied from interface:OntologyResourceWhether the resource is marked as obsolete.- Specified by:
isObsoletein interfaceOntologyResource
-
-