gov.nih.nci.caarray.domain.protocol
Class TermBasedParameterValue
java.lang.Object
gov.nih.nci.caarray.domain.AbstractCaArrayObject
gov.nih.nci.caarray.domain.AbstractCaArrayEntity
gov.nih.nci.caarray.domain.AbstractUnitableValue
gov.nih.nci.caarray.domain.protocol.AbstractParameterValue
gov.nih.nci.caarray.domain.protocol.TermBasedParameterValue
- All Implemented Interfaces:
- com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, TermBasedValue, UnitableValue, java.io.Serializable
public class TermBasedParameterValue
- extends AbstractParameterValue
- implements TermBasedValue
A parameter value with a controlled vocabulary term value.
- Author:
- dkokotov
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TermBasedParameterValue
public TermBasedParameterValue()
- Hibernate-only constructor.
TermBasedParameterValue
public TermBasedParameterValue(TermBasedParameterValue other)
- Copy constructor.
- Parameters:
other
- the value to copy from
TermBasedParameterValue
public TermBasedParameterValue(Term term,
Term unit)
- Create a new protocol value with given term and unit.
- Parameters:
term
- the termunit
- the unit
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
matches
public boolean matches(AbstractParameterValue other)
- Checks if two ParameterValues are the same, ignoring ProtocolApplications.
Subclasses should override to define additional checks (possibly calling super.matches).
- Overrides:
matches
in class AbstractParameterValue
- Parameters:
other
- other ParameterValue to compare to
- Returns:
- true if they match