|
|||||||||
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.Category
@UniqueConstraints(constraints={@UniqueConstraint(fields={@UniqueConstraintField(name="name"),@UniqueConstraintField(name="source")}),@UniqueConstraint(fields={@UniqueConstraintField(name="accession"),@UniqueConstraintField(name="source")})}, message="{category.uniqueConstraint}") public class Category
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 | |
---|---|
Category()
Empty constructor (for tools). |
|
Category(java.lang.String name,
TermSource ts)
Create Category with given name and source. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
The default comparison uses the id. |
java.lang.String |
getAccession()
|
java.util.Set<Category> |
getChildren()
Gets the children. |
java.lang.String |
getName()
Gets the name. |
java.util.Set<Category> |
getParents()
Gets the parent. |
TermSource |
getSource()
|
java.lang.String |
getUrl()
|
int |
hashCode()
Default hashCode goes off of id. |
void |
setAccession(java.lang.String accession)
|
void |
setName(java.lang.String nameVal)
Sets the name. |
void |
setSource(TermSource termSource)
Set the termSource. |
void |
setUrl(java.lang.String url)
|
java.lang.String |
toString()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Category()
public Category(java.lang.String name, TermSource ts)
name
- the category namets
- the TermSource to which the category belongsMethod Detail |
---|
@Length(min=1, max=254) @NotNull public java.lang.String getName()
public void setName(java.lang.String nameVal)
nameVal
- the namepublic java.lang.String getAccession()
public void setAccession(java.lang.String accession)
accession
- the accession to setpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url to setpublic java.util.Set<Category> getParents()
public java.util.Set<Category> getChildren()
@NotNull public TermSource getSource()
public void setSource(TermSource termSource)
termSource
- The termSource to setpublic boolean equals(java.lang.Object o)
equals
in class AbstractCaArrayObject
o
- other object
public int hashCode()
hashCode
in class AbstractCaArrayObject
public java.lang.String toString()
toString
in class AbstractCaArrayObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |