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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractOntologyResourceSimple
(@Nullable String uri, @Nullable String localName, @Nullable String label) -
Method Summary
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
getComment, isObsolete
-
Constructor Details
-
AbstractOntologyResourceSimple
-
-
Method Details
-
getUri
Description copied from interface:OntologyResource
A URI if known, otherwise null.- Specified by:
getUri
in interfaceOntologyResource
-
getLocalName
Description copied from interface:OntologyResource
A local name for this resource.- Specified by:
getLocalName
in interfaceOntologyResource
-
getLabel
Description copied from interface:OntologyResource
A label, if known, otherwise null.- Specified by:
getLabel
in interfaceOntologyResource
-
unwrap
Description copied from interface:OntologyResource
Unwrap the underlying implementation of the ontology resource.- Specified by:
unwrap
in interfaceOntologyResource
- Throws:
ClassCastException
- if the implementation type does not match the given class
-
equals
-
hashCode
public int hashCode()
-