Package ubic.basecode.ontology.jena
Class AnnotationPropertyImpl
- java.lang.Object
-
- ubic.basecode.ontology.jena.AbstractOntologyResource
-
- ubic.basecode.ontology.jena.AnnotationPropertyImpl
-
- All Implemented Interfaces:
Serializable,Comparable<OntologyResource>,AnnotationProperty,OntologyResource
public class AnnotationPropertyImpl extends AbstractOntologyResource implements AnnotationProperty
Note that this is a concrete instance of the annotation.- Author:
- pavlidis
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ubic.basecode.ontology.jena.AbstractOntologyResource
log
-
-
Constructor Summary
Constructors Constructor Description AnnotationPropertyImpl(com.hp.hpl.jena.ontology.AnnotationProperty prop, com.hp.hpl.jena.rdf.model.RDFNode object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContents()StringgetProperty()StringgetUri()A URI if known, otherwise null.inthashCode()booleanisObsolete()Whether the resource is marked as obsolete.StringtoString()-
Methods inherited from class ubic.basecode.ontology.jena.AbstractOntologyResource
compareTo, getLabel, getScore
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getScore
-
-
-
-
Constructor Detail
-
AnnotationPropertyImpl
public AnnotationPropertyImpl(com.hp.hpl.jena.ontology.AnnotationProperty prop, @Nullable com.hp.hpl.jena.rdf.model.RDFNode object)- Parameters:
prop- property for the statementsource- ontology this relates to.object- of the statement
-
-
Method Detail
-
equals
public boolean equals(@Nullable Object obj)
- Overrides:
equalsin classAbstractOntologyResource
-
getUri
public String getUri()
Description copied from interface:OntologyResourceA URI if known, otherwise null.- Specified by:
getUriin interfaceOntologyResource- Overrides:
getUriin classAbstractOntologyResource
-
getContents
public String getContents()
- Specified by:
getContentsin interfaceAnnotationProperty
-
getProperty
public String getProperty()
- Specified by:
getPropertyin interfaceAnnotationProperty
-
isObsolete
public boolean isObsolete()
Description copied from interface:OntologyResourceWhether the resource is marked as obsolete.- Specified by:
isObsoletein interfaceOntologyResource- Overrides:
isObsoletein classAbstractOntologyResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractOntologyResource
-
toString
public String toString()
- Overrides:
toStringin classAbstractOntologyResource
-
-