public abstract class AbstractTagValueHandler extends Object implements TagValueHandler
| Constructor and Description |
|---|
AbstractTagValueHandler(String tag,
OBOConsumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAnnotation(String id,
String uriID,
OWLLiteral value) |
void |
applyChange(OWLOntologyChange change) |
OWLAnnotation |
getAnnotationForTagValuePair(String tagName,
String value)
Gets an
OWLAnnotation for a tag value pair. |
protected OWLLiteral |
getBooleanConstant(boolean b) |
OWLClass |
getClassFromId(String s) |
OBOConsumer |
getConsumer() |
OWLClass |
getCurrentClass() |
OWLDataFactory |
getDataFactory() |
IRI |
getIRIFromOBOId(String id) |
OWLOntology |
getOntology() |
protected OWLClass |
getOWLClass(String id) |
protected OWLClassExpression |
getOWLClassOrRestriction(String termList) |
protected OWLObjectProperty |
getOWLObjectProperty(String id) |
OWLOntologyManager |
getOWLOntologyManager() |
IRI |
getTagIRI(OBOVocabulary vocabulary) |
IRI |
getTagIRI(String tagName)
Gets an IRI for a tag name.
|
String |
getTagName()
Gets the name of the tag handled by this tag value handler
|
protected String |
getUnquotedString(String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic AbstractTagValueHandler(String tag, OBOConsumer consumer)
public String getTagName()
TagValueHandlergetTagName in interface TagValueHandlerpublic OWLOntologyManager getOWLOntologyManager()
public OWLOntology getOntology()
public void applyChange(OWLOntologyChange change)
public OBOConsumer getConsumer()
public OWLDataFactory getDataFactory()
public IRI getTagIRI(OBOVocabulary vocabulary)
public IRI getTagIRI(String tagName)
OBOConsumer.getIRIFromTagName(String).tagName - The tag name.public OWLAnnotation getAnnotationForTagValuePair(String tagName, 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 getCurrentClass()
protected OWLObjectProperty getOWLObjectProperty(String id)
protected OWLClassExpression getOWLClassOrRestriction(String termList)
protected OWLLiteral getBooleanConstant(boolean b)
protected void addAnnotation(String id, String uriID, OWLLiteral value)
Copyright © 2012 The University of Manchester. All Rights Reserved.