gov.nih.nci.caarray.domain.sample
Class TermBasedCharacteristic

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.AbstractUnitableValue
              extended by gov.nih.nci.caarray.domain.sample.AbstractCharacteristic
                  extended by gov.nih.nci.caarray.domain.sample.TermBasedCharacteristic
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, TermBasedValue, UnitableValue, java.io.Serializable

public class TermBasedCharacteristic
extends AbstractCharacteristic
implements TermBasedValue

See Also:
Serialized Form

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
TermBasedCharacteristic()
          Hibernate-only constructor.
TermBasedCharacteristic(Category category, Term term, Term unit)
          Create a new characteristic with given category, term and unit.
 
Method Summary
 java.lang.String getDisplayValueWithoutUnit()
          
 Term getTerm()
          Gets the term.
 void setTerm(Term termVal)
          Sets the term.
 
Methods inherited from class gov.nih.nci.caarray.domain.sample.AbstractCharacteristic
getBioMaterial, getCategory, getUnit, setBioMaterial, setCategory, setUnit
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractUnitableValue
getDisplayValue
 
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
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nih.nci.caarray.domain.UnitableValue
getDisplayValue, getUnit, setUnit
 

Constructor Detail

TermBasedCharacteristic

public TermBasedCharacteristic()
Hibernate-only constructor.


TermBasedCharacteristic

public TermBasedCharacteristic(Category category,
                               Term term,
                               Term unit)
Create a new characteristic with given category, term and unit.

Parameters:
category - the category.
term - the term
unit - the unit
Method Detail

getTerm

@NotNull
public Term getTerm()
Gets the term.

Specified by:
getTerm in interface TermBasedValue
Returns:
the term

setTerm

public void setTerm(Term termVal)
Sets the term.

Specified by:
setTerm in interface TermBasedValue
Parameters:
termVal - the term

getDisplayValueWithoutUnit

public java.lang.String getDisplayValueWithoutUnit()

Specified by:
getDisplayValueWithoutUnit in interface UnitableValue
Returns:
the value (without unit) as a string displayable in the ui