public class SimpleOBOTree
extends java.lang.Object
Constructor and Description |
---|
SimpleOBOTree() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(SimpleOBOEntry entry) |
void |
addTreeBranch(java.lang.String parent,
java.lang.String child) |
java.util.Set<SimpleOBOEntry> |
getAllEntries() |
java.util.Set<java.lang.String> |
getAllNodeIDs() |
java.util.Set<java.lang.String> |
getChildNodes(java.lang.String parentNodeID)
return all nodeIDs that are children of the given parentNodeID
|
SimpleOBOEntry |
getEntry(java.lang.String id) |
java.util.Set<java.lang.String> |
getParentNodeIDs()
return all nodeIDs that have children
|
com.google.common.collect.HashMultimap<java.lang.String,java.lang.String> |
getTree()
returns the go tree - not a copy, for efficiency and economy concerns
|
static SimpleOBOTree |
parse(java.lang.String name,
java.io.InputStream in) |
void |
printBranches() |
void |
printEntries() |
public void addEntry(SimpleOBOEntry entry)
public com.google.common.collect.HashMultimap<java.lang.String,java.lang.String> getTree()
public void addTreeBranch(java.lang.String parent, java.lang.String child)
public static SimpleOBOTree parse(java.lang.String name, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void printEntries()
public void printBranches()
public java.util.Set<java.lang.String> getParentNodeIDs()
public java.util.Set<java.lang.String> getChildNodes(java.lang.String parentNodeID)
parentNodeID
- public SimpleOBOEntry getEntry(java.lang.String id)
public java.util.Set<java.lang.String> getAllNodeIDs()
public java.util.Set<SimpleOBOEntry> getAllEntries()