org.coode.owlapi.obo.renderer
Class OBOTagValuePairList

java.lang.Object
  extended by 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


Constructor Summary
OBOTagValuePairList(java.util.List<OBOVocabulary> knownVocab)
           
 
Method Summary
 void addPair(IRI tag, java.lang.String value)
           
 void addPair(OBOVocabulary tag, java.lang.String value)
           
 java.util.Set<java.lang.String> getValues(OBOVocabulary key)
           
 void setDefault(IRI tag, java.lang.String value)
           
 void setDefault(OBOVocabulary tag, java.lang.String value)
           
 void setPair(OBOVocabulary key, java.lang.String value)
           
 void visit(OWLAnnotation annot)
           
 void write(java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OBOTagValuePairList

public OBOTagValuePairList(java.util.List<OBOVocabulary> knownVocab)
Parameters:
knownVocab - the set of tags that are known by this generator
Method Detail

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)