public abstract class AbstractTagValueHandler extends java.lang.Object implements TagValueHandler
Constructor and Description |
---|
AbstractTagValueHandler(java.lang.String tag,
OBOConsumer consumer) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAnnotation(java.lang.String id,
java.lang.String uriID,
OWLLiteral value) |
void |
applyChange(OWLOntologyChange change) |
OWLAnnotation |
getAnnotationForTagValuePair(java.lang.String tagName,
java.lang.String value)
Gets an
OWLAnnotation for a tag value pair. |
protected OWLLiteral |
getBooleanConstant(boolean b) |
OWLClass |
getClassFromId(java.lang.String s) |
OBOConsumer |
getConsumer() |
OWLClass |
getCurrentClass() |
OWLDataFactory |
getDataFactory() |
IRI |
getIRIFromOBOId(java.lang.String id) |
OWLOntology |
getOntology() |
protected OWLClass |
getOWLClass(java.lang.String id) |
protected OWLClassExpression |
getOWLClassOrRestriction(java.lang.String termList) |
protected OWLObjectProperty |
getOWLObjectProperty(java.lang.String id) |
OWLOntologyManager |
getOWLOntologyManager() |
IRI |
getTagIRI(OBOVocabulary vocabulary) |
IRI |
getTagIRI(java.lang.String tagName)
Gets an IRI for a tag name.
|
java.lang.String |
getTagName()
Gets the name of the tag handled by this tag value handler
|
protected java.lang.String |
getUnquotedString(java.lang.String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
public AbstractTagValueHandler(java.lang.String tag, OBOConsumer consumer)
public java.lang.String getTagName()
TagValueHandler
getTagName
in interface TagValueHandler
public OWLOntologyManager getOWLOntologyManager()
public OWLOntology getOntology()
public void applyChange(OWLOntologyChange change)
public OBOConsumer getConsumer()
public OWLDataFactory getDataFactory()
public IRI getTagIRI(OBOVocabulary vocabulary)
public IRI getTagIRI(java.lang.String tagName)
OBOConsumer.getIRIFromTagName(String)
.tagName
- The tag name.public IRI getIRIFromOBOId(java.lang.String id)
public OWLAnnotation getAnnotationForTagValuePair(java.lang.String tagName, java.lang.String value)
OWLAnnotation
for a tag value pair.tagName
- The tag name.value
- The tag value. Note that the tag value is un-escaped and stripped of double quotes if they exist.OWLAnnotation
that is formed by converting the tagName to an IRI and then to an
OWLAnnotationProperty
and the value to an OWLLiteral
.public OWLClass getClassFromId(java.lang.String s)
public OWLClass getCurrentClass()
protected OWLClass getOWLClass(java.lang.String id)
protected OWLObjectProperty getOWLObjectProperty(java.lang.String id)
protected java.lang.String getUnquotedString(java.lang.String value)
protected OWLClassExpression getOWLClassOrRestriction(java.lang.String termList)
protected OWLLiteral getBooleanConstant(boolean b)
protected void addAnnotation(java.lang.String id, java.lang.String uriID, OWLLiteral value)