public class Frame extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Frame.FrameType
The Enum FrameType.
|
| Constructor and Description |
|---|
Frame()
Instantiates a new frame.
|
Frame(Frame.FrameType type)
Instantiates a new frame.
|
public Frame()
public Frame(@Nullable Frame.FrameType type)
type - the typepublic void freeze()
@Nullable public Frame.FrameType getType()
public void setType(Frame.FrameType type)
type - the new typepublic void setId(String id)
id - the new idpublic Collection<Clause> getClauses()
public void setClauses(Collection<Clause> clauses)
clauses - the new clausespublic List<Clause> getClauses(@Nullable String tag)
tag - the tagpublic List<Clause> getClauses(OBOFormatConstants.OboFormatTag tag)
tag - the tag@Nullable public Clause getClause(@Nullable String tag)
tag - the tag@Nullable public Clause getClause(OBOFormatConstants.OboFormatTag tag)
tag - the tagpublic void addClause(Clause cl)
cl - the clause@Nullable public Object getTagValue(String tag)
tag - the tag@Nullable public Object getTagValue(OBOFormatConstants.OboFormatTag tag)
tag - the tag@Nullable public <T> T getTagValue(String tag, Class<T> cls)
T - the generic typetag - the tagcls - the class@Nullable public <T> T getTagValue(OBOFormatConstants.OboFormatTag tag, Class<T> cls)
T - the generic typetag - the tagcls - the classpublic Collection<Object> getTagValues(OBOFormatConstants.OboFormatTag tag)
tag - the tagpublic Collection<Object> getTagValues(String tag)
tag - the tagpublic <T> Collection<T> getTagValues(OBOFormatConstants.OboFormatTag tag, Class<T> cls)
T - the generic typetag - the tagcls - the classpublic <T> Collection<T> getTagValues(String tag, Class<T> cls)
T - the generic typetag - the tagcls - the classpublic Collection<Xref> getTagXrefs(String tag)
tag - the tagpublic void merge(Frame extFrame) throws FrameMergeException
extFrame - the external frameFrameMergeException - the frame merge exceptionpublic void check()
FrameStructureException - the frame structure exceptionfor equivalent checks in OWLCopyright © 2020 The University of Manchester. All rights reserved.