public class Clause extends Object
Constructor and Description |
---|
Clause()
Deprecated.
use Clause(String). Using this constructor makes the hashcode variable.
|
Clause(OBOFormatConstants.OboFormatTag tag) |
Clause(OBOFormatConstants.OboFormatTag tag,
String value) |
Clause(String tag) |
Clause(String tag,
String value) |
Modifier and Type | Method and Description |
---|---|
void |
addQualifierValue(QualifierValue qv) |
void |
addValue(Object v) |
void |
addXref(Xref xref) |
boolean |
equals(Object obj) |
Collection<QualifierValue> |
getQualifierValues() |
String |
getTag() |
Object |
getValue() |
<T> T |
getValue(Class<T> cls) |
Object |
getValue2() |
<T> T |
getValue2(Class<T> cls) |
Collection<Object> |
getValues() |
Collection<Xref> |
getXrefs() |
int |
hashCode() |
boolean |
hasNoAnnotations() |
void |
setQualifierValues(Collection<QualifierValue> qualifierValues) |
void |
setTag(String tag) |
void |
setValue(Object v) |
void |
setValues(Collection<Object> values) |
void |
setXrefs(Collection<Xref> xrefs) |
String |
toString() |
Clause |
withValue(String value) |
public Clause(OBOFormatConstants.OboFormatTag tag)
tag
- tagpublic Clause(OBOFormatConstants.OboFormatTag tag, String value)
tag
- tagvalue
- value@Deprecated public Clause()
public Clause withValue(String value)
value
- value to setpublic boolean hasNoAnnotations()
public void setTag(String tag)
tag
- tagpublic Collection<Object> getValues()
public void setValues(Collection<Object> values)
values
- valuespublic Object getValue()
FrameStructureException
- if there is no valuepublic void setValue(Object v)
v
- vpublic <T> T getValue(Class<T> cls)
T
- value typecls
- classpublic Object getValue2()
FrameStructureException
- if there is no valuepublic <T> T getValue2(Class<T> cls)
T
- value typecls
- classpublic Collection<Xref> getXrefs()
public void setXrefs(Collection<Xref> xrefs)
xrefs
- xref listpublic void addXref(Xref xref)
xref
- xrefpublic Collection<QualifierValue> getQualifierValues()
public void setQualifierValues(Collection<QualifierValue> qualifierValues)
qualifierValues
- qualifier valuespublic void addQualifierValue(QualifierValue qv)
qv
- qualifier valueCopyright © 2020 The University of Manchester. All rights reserved.