public class DateValue extends Object implements SimpleValue
Constructor and Description |
---|
DateValue(Date value)
Creates new instance of
DateValue . |
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
DateValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
String |
getType()
Returns the type.
|
Date |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
SSimpleValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
String |
toString() |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
finishCopy
public DateValue(Date value)
DateValue
.value
- NullPointerException
- if modelInstance
or value
is nullpublic SSimpleValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValue
toSerializable
in interface SimpleValue
toSerializable
in interface Value
public Date getValue()
SimpleValue
getValue
in interface SimpleValue
public <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
public SimpleValue toSimpleValue()
Value
SimpleValue
this method returns this, otherwise it returns a
ValueRef
to this.toSimpleValue
in interface Value
SimpleValue
public Value toValue()
Value
ValueRef
this method returns the referenced value, otherwise it returns
this.public Type getCompiledType(ModelProvider modelProvider)
Value
getCompiledType
in interface Value
public DateValue createCopy(ModelInstance targetModelInstance)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.