org.obolibrary.oboformat.model
Class Frame
java.lang.Object
org.obolibrary.oboformat.model.Frame
public class Frame
- extends Object
clauses
protected Collection<Clause> clauses
id
protected String id
type
protected Frame.FrameType type
Frame
public Frame()
Frame
public Frame(Frame.FrameType type)
init
protected void init()
getType
public Frame.FrameType getType()
setType
public void setType(Frame.FrameType type)
getId
public String getId()
setId
public void setId(String id)
getClauses
public Collection<Clause> getClauses()
getClauses
public Collection<Clause> getClauses(String tag)
getClauses
public Collection<Clause> getClauses(OBOFormatConstants.OboFormatTag tag)
getClause
public Clause getClause(String tag)
- Parameters:
tag
-
- Returns:
- null if no value set, otherwise first value
getClause
public Clause getClause(OBOFormatConstants.OboFormatTag tag)
setClauses
public void setClauses(Collection<Clause> clauses)
addClause
public void addClause(Clause cl)
toString
public String toString()
- Overrides:
toString
in class Object
getTagValue
public Object getTagValue(String tag)
getTagValue
public Object getTagValue(OBOFormatConstants.OboFormatTag tag)
getTagValue
public <T> T getTagValue(String tag,
Class<T> cls)
getTagValue
public <T> T getTagValue(OBOFormatConstants.OboFormatTag tag,
Class<T> cls)
getTagValues
public Collection<Object> getTagValues(OBOFormatConstants.OboFormatTag tag)
getTagValues
public Collection<Object> getTagValues(String tag)
getTagValues
public <T> Collection<T> getTagValues(OBOFormatConstants.OboFormatTag tag,
Class<T> cls)
getTagValues
public <T> Collection<T> getTagValues(String tag,
Class<T> cls)
getTagXrefs
public Collection<Xref> getTagXrefs(String tag)
getTags
public Set<String> getTags()
merge
public void merge(Frame extFrame)
throws FrameMergeException
- Throws:
FrameMergeException
check
public void check()
throws FrameStructureException
- Throws:
FrameStructureException
Copyright © 2010-2011. All Rights Reserved.