org.obolibrary.oboformat.writer
Class OBOFormatWriter.OBODocNameProvider

java.lang.Object
  extended by org.obolibrary.oboformat.writer.OBOFormatWriter.OBODocNameProvider
All Implemented Interfaces:
OBOFormatWriter.NameProvider
Enclosing class:
OBOFormatWriter

public static class OBOFormatWriter.OBODocNameProvider
extends Object
implements OBOFormatWriter.NameProvider

Default implementation of a OBOFormatWriter.NameProvider using an underlying OBODoc.


Constructor Summary
OBOFormatWriter.OBODocNameProvider(OBODoc oboDoc)
           
 
Method Summary
 String getDefaultOboNamespace()
          Retrieve the default OBO namespace
 String getName(String id)
          Try to retrieve the valid name for the given identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OBOFormatWriter.OBODocNameProvider

public OBOFormatWriter.OBODocNameProvider(OBODoc oboDoc)
Parameters:
oboDoc -
Method Detail

getName

public String getName(String id)
Description copied from interface: OBOFormatWriter.NameProvider
Try to retrieve the valid name for the given identifier. If not available return null.

Specified by:
getName in interface OBOFormatWriter.NameProvider
Parameters:
id - identifier
Returns:
name or null

getDefaultOboNamespace

public String getDefaultOboNamespace()
Description copied from interface: OBOFormatWriter.NameProvider
Retrieve the default OBO namespace

Specified by:
getDefaultOboNamespace in interface OBOFormatWriter.NameProvider
Returns:
default OBO namespace or null


Copyright © 2010-2014. All Rights Reserved.