org.coode.owlapi.obo.renderer
Class OBOTagValuePairList
java.lang.Object
org.coode.owlapi.obo.renderer.OBOTagValuePairList
public class OBOTagValuePairList
- extends 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(List<OBOVocabulary> knownVocab)
- Parameters:
knownVocab - the set of tags that are known by this generator
visit
public void visit(org.semanticweb.owlapi.model.OWLAnnotation annot)
addPair
public void addPair(OBOVocabulary tag,
String value)
addPair
public void addPair(org.semanticweb.owlapi.model.IRI tag,
String value)
setPair
public void setPair(OBOVocabulary key,
String value)
setDefault
public void setDefault(OBOVocabulary tag,
String value)
setDefault
public void setDefault(org.semanticweb.owlapi.model.IRI tag,
String value)
getValues
public Set<String> getValues(OBOVocabulary key)
write
public void write(Writer writer)
Copyright © 2012 The University of Manchester. All Rights Reserved.