org.coode.owlapi.obo.renderer
Class OBOTagValuePairList
java.lang.Object
org.coode.owlapi.obo.renderer.OBOTagValuePairList
public class OBOTagValuePairList
- extends java.lang.Object
Author: Nick Drummond
The University Of Manchester
Bio Health Informatics Group
Date: Dec 19, 2008
An ordered rendering of the Tag Value Pairs that also supports:
- default values
- unknown tags (which are rendered at the end of the known tags)
- extraction of TVPs from annotations
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBOTagValuePairList
public OBOTagValuePairList(java.util.List<OBOVocabulary> knownVocab)
- Parameters:
knownVocab
- the set of tags that are known by this generator
visit
public void visit(OWLAnnotation annot)
addPair
public void addPair(OBOVocabulary tag,
java.lang.String value)
addPair
public void addPair(IRI tag,
java.lang.String value)
setPair
public void setPair(OBOVocabulary key,
java.lang.String value)
setDefault
public void setDefault(OBOVocabulary tag,
java.lang.String value)
setDefault
public void setDefault(IRI tag,
java.lang.String value)
getValues
public java.util.Set<java.lang.String> getValues(OBOVocabulary key)
write
public void write(java.io.Writer writer)