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() |
public Clause(@Nonnull OBOFormatConstants.OboFormatTag tag)
tag
- tagpublic Clause(String tag)
tag
- tagpublic Clause(@Nonnull OBOFormatConstants.OboFormatTag tag, String value)
tag
- tagvalue
- value@Deprecated public Clause()
public boolean hasNoAnnotations()
public String getTag()
public void setTag(String tag)
tag
- tag@Nonnull public Collection<Object> getValues()
public void setValues(@Nonnull Collection<Object> values)
values
- valuespublic void setValue(Object v)
v
- vpublic void addValue(Object v)
v
- v@Nullable public <T> T getValue(@Nonnull Class<T> cls)
T
- value typecls
- class@Nullable public <T> T getValue2(@Nonnull Class<T> cls)
T
- value typecls
- class@Nonnull public Collection<Xref> getXrefs()
public void setXrefs(@Nonnull Collection<Xref> xrefs)
xrefs
- xref listpublic void addXref(Xref xref)
xref
- xref@Nonnull public Collection<QualifierValue> getQualifierValues()
public void setQualifierValues(@Nonnull Collection<QualifierValue> qualifierValues)
qualifierValues
- qualifier valuespublic void addQualifierValue(QualifierValue qv)
qv
- qualifier valueCopyright © 2020 The University of Manchester. All rights reserved.