org.obolibrary.oboformat.model
Class Frame

java.lang.Object
  extended by org.obolibrary.oboformat.model.Frame

public class Frame
extends Object


Nested Class Summary
static class Frame.FrameType
           
 
Field Summary
protected  Collection<Clause> clauses
           
protected  String id
           
protected  Frame.FrameType type
           
 
Constructor Summary
Frame()
           
Frame(Frame.FrameType type)
           
 
Method Summary
 void addClause(Clause cl)
           
 void check()
           
 Clause getClause(OBOFormatConstants.OboFormatTag tag)
           
 Clause getClause(String tag)
           
 Collection<Clause> getClauses()
           
 Collection<Clause> getClauses(OBOFormatConstants.OboFormatTag tag)
           
 Collection<Clause> getClauses(String tag)
           
 String getId()
           
 Set<String> getTags()
           
 Object getTagValue(OBOFormatConstants.OboFormatTag tag)
           
<T> T
getTagValue(OBOFormatConstants.OboFormatTag tag, Class<T> cls)
           
 Object getTagValue(String tag)
           
<T> T
getTagValue(String tag, Class<T> cls)
           
 Collection<Object> getTagValues(OBOFormatConstants.OboFormatTag tag)
           
<T> Collection<T>
getTagValues(OBOFormatConstants.OboFormatTag tag, Class<T> cls)
           
 Collection<Object> getTagValues(String tag)
           
<T> Collection<T>
getTagValues(String tag, Class<T> cls)
           
 Collection<Xref> getTagXrefs(String tag)
           
 Frame.FrameType getType()
           
protected  void init()
           
 void merge(Frame extFrame)
           
 void setClauses(Collection<Clause> clauses)
           
 void setId(String id)
           
 void setType(Frame.FrameType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clauses

protected Collection<Clause> clauses

id

protected String id

type

protected Frame.FrameType type
Constructor Detail

Frame

public Frame()

Frame

public Frame(Frame.FrameType type)
Method Detail

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-2012. All Rights Reserved.