public abstract class Measurement extends java.lang.Object implements MeasurementI, BaseEntityI
int
, double
, money
, text
or boolean
related to a Strategy and a particular timeModifier and Type | Class and Description |
---|---|
static class |
Measurement.Converter
Converts instances of of
Measurement to corresponding value objects. |
static class |
Measurement.Factory
Constructs new instances of
Measurement . |
Constructor and Description |
---|
Measurement() |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(EntityVisitor<R,? super P> visitor,
P param) |
MeasurementVO |
convertToVO()
converts this domain object (entity) to its corresponding value object
|
java.lang.Boolean |
getBooleanValue() |
java.time.ZonedDateTime |
getDateTime() |
java.lang.Double |
getDoubleValue() |
long |
getId() |
java.lang.Integer |
getIntValue() |
java.math.BigDecimal |
getMoneyValue() |
java.lang.String |
getName() |
Strategy |
getStrategy()
Represents a running Strategy within the system.
|
java.lang.String |
getTextValue() |
abstract java.lang.Object |
getValue()
Returns the first non-null value property
|
void |
initializeStrategy(Initializer initializer) |
boolean |
isInitialized() |
void |
setBooleanValue(java.lang.Boolean booleanValue) |
void |
setDateTime(java.time.ZonedDateTime dateTime) |
void |
setDoubleValue(java.lang.Double doubleValue) |
void |
setId(long id) |
void |
setInitialized() |
void |
setIntValue(java.lang.Integer intValue) |
void |
setMoneyValue(java.math.BigDecimal moneyValue) |
void |
setName(java.lang.String name) |
void |
setStrategy(Strategy strategy) |
void |
setTextValue(java.lang.String textValue) |
abstract void |
setValue(java.lang.Object value)
Sets the correct value property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public boolean isInitialized()
isInitialized
in interface BaseEntityI
public void setInitialized()
public <R,P> R accept(EntityVisitor<R,? super P> visitor, P param)
accept
in interface BaseEntityI
public long getId()
getId
in interface BaseEntityI
getId
in interface MeasurementI
public void setId(long id)
public java.lang.String getName()
getName
in interface MeasurementI
public void setName(java.lang.String name)
public java.time.ZonedDateTime getDateTime()
getDateTime
in interface MeasurementI
public void setDateTime(java.time.ZonedDateTime dateTime)
public java.lang.Integer getIntValue()
getIntValue
in interface MeasurementI
public void setIntValue(java.lang.Integer intValue)
public java.lang.Double getDoubleValue()
getDoubleValue
in interface MeasurementI
public void setDoubleValue(java.lang.Double doubleValue)
public java.math.BigDecimal getMoneyValue()
getMoneyValue
in interface MeasurementI
public void setMoneyValue(java.math.BigDecimal moneyValue)
public java.lang.String getTextValue()
getTextValue
in interface MeasurementI
public void setTextValue(java.lang.String textValue)
public java.lang.Boolean getBooleanValue()
getBooleanValue
in interface MeasurementI
public void setBooleanValue(java.lang.Boolean booleanValue)
public Strategy getStrategy()
public void setStrategy(Strategy strategy)
public void initializeStrategy(Initializer initializer)
public abstract java.lang.Object getValue()
public abstract void setValue(java.lang.Object value)
int
, double
,
money
, text
or boolean
a IllegalArgumentException
is thrownvalue
- public MeasurementVO convertToVO()