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(Frame.FrameType type)
type - the typepublic void freeze()
public Frame.FrameType getType()
public void setType(Frame.FrameType type)
type - the new typepublic String getId()
public void setId(String id)
id - the new idpublic Collection<Clause> getClauses()
@Nonnull public Collection<Clause> getClauses(String tag)
tag - the tag@Nonnull public Collection<Clause> getClauses(@Nonnull OBOFormatConstants.OboFormatTag tag)
tag - the tag@Nullable public Clause getClause(String tag)
tag - the tag@Nullable public Clause getClause(@Nonnull OBOFormatConstants.OboFormatTag tag)
tag - the tagpublic void setClauses(Collection<Clause> clauses)
clauses - the new clausespublic void addClause(Clause cl)
cl - the clause@Nullable public Object getTagValue(String tag)
tag - the tag@Nullable public Object getTagValue(@Nonnull OBOFormatConstants.OboFormatTag tag)
tag - the tag@Nullable public <T> T getTagValue(String tag, @Nonnull Class<T> cls)
T - the generic typetag - the tagcls - the cls@Nullable public <T> T getTagValue(@Nonnull OBOFormatConstants.OboFormatTag tag, @Nonnull Class<T> cls)
T - the generic typetag - the tagcls - the cls@Nonnull public Collection<Object> getTagValues(@Nonnull OBOFormatConstants.OboFormatTag tag)
tag - the tag@Nonnull public Collection<Object> getTagValues(String tag)
tag - the tag@Nonnull public <T> Collection<T> getTagValues(@Nonnull OBOFormatConstants.OboFormatTag tag, @Nonnull Class<T> cls)
T - the generic typetag - the tagcls - the cls@Nonnull public <T> Collection<T> getTagValues(String tag, @Nonnull Class<T> cls)
T - the generic typetag - the tagcls - the cls@Nonnull public Collection<Xref> getTagXrefs(String tag)
tag - the tagpublic void merge(@Nonnull Frame extFrame) throws FrameMergeException
extFrame - the external frameFrameMergeException - the frame merge exceptionpublic void check()
throws FrameStructureException
FrameStructureException - the frame structure exceptionfor equivalent checks in OWLCopyright © 2020 The University of Manchester. All rights reserved.