|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.vocabulary.Term
@UniqueConstraints(constraints={@UniqueConstraint(fields={@UniqueConstraintField(name="value"),@UniqueConstraintField(name="source")}),@UniqueConstraint(fields={@UniqueConstraintField(name="accession"),@UniqueConstraintField(name="source")})}, message="{term.uniqueConstraint}") public class Term
Field Summary |
---|
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE |
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH |
Constructor Summary | |
---|---|
Term()
|
Method Summary | |
---|---|
int |
compareTo(Term o)
|
boolean |
equals(java.lang.Object o)
The default comparison uses the id. |
java.lang.String |
getAccession()
Gets the accession, which is a unique identifier for this term within its term source. |
java.util.Set<Category> |
getCategories()
|
java.lang.String |
getDescription()
Gets the description. |
TermSource |
getSource()
Gets the source. |
java.lang.String |
getUrl()
Gets the url at which this term can be accessed, if available. |
java.lang.String |
getValue()
Gets the value. |
java.lang.String |
getValueAndSource()
|
int |
hashCode()
Default hashCode goes off of id. |
void |
setAccession(java.lang.String accession)
Sets the accession. |
void |
setCategory(Category category)
Sets the categories of this term to be the singleton set with the given category. |
void |
setDescription(java.lang.String descriptionVal)
Sets the description. |
void |
setSource(TermSource sourceVal)
Sets the source. |
void |
setUrl(java.lang.String urlVal)
Sets the url. |
void |
setValue(java.lang.String valueVal)
Sets the value. |
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity |
---|
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity |
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject |
---|
getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, setCaBigId, setId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Term()
Method Detail |
---|
@Length(max=254) public java.lang.String getDescription()
public void setDescription(java.lang.String descriptionVal)
descriptionVal
- the description@NotNull @Length(min=1, max=254) public java.lang.String getValue()
public void setValue(java.lang.String valueVal)
valueVal
- the valuepublic java.lang.String getUrl()
public void setUrl(java.lang.String urlVal)
urlVal
- the urlpublic java.lang.String getAccession()
public void setAccession(java.lang.String accession)
accession
- the accessionpublic java.util.Set<Category> getCategories()
public void setCategory(Category category)
category
- the category which should be the sole category for this term@NotNull(message="{term.source.notNull}") public TermSource getSource()
public void setSource(TermSource sourceVal)
sourceVal
- the sourcepublic java.lang.String getValueAndSource()
public boolean equals(java.lang.Object o)
equals
in class AbstractCaArrayObject
o
- other object
public int hashCode()
hashCode
in class AbstractCaArrayObject
public int compareTo(Term o)
compareTo
in interface java.lang.Comparable<Term>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |