public class ObjectValue extends Object implements SimpleValue, ModelInstanceAware
| Constructor and Description |
|---|
ObjectValue(ModelInstance modelInstance,
Object value)
Creates new instance of
StringValue. |
ObjectValue(SObjectValue source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
ObjectValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
String |
getType()
Returns the type.
|
Object |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
boolean |
isSerializedXml()
Returns true if the serializedValue contains xml.
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
SObjectValue |
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, waitfinishCopypublic ObjectValue(ModelInstance modelInstance, Object value)
StringValue.modelInstance - value - NullPointerException - if modelInstance or value is nullpublic ObjectValue(SObjectValue source, ModelInstance modelInstance)
source - modelInstance - public SObjectValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValuetoSerializable in interface SimpleValuetoSerializable in interface Valuepublic Object getValue()
SimpleValuegetValue in interface SimpleValuepublic <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Valuepublic ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface Valuepublic boolean isSerializedXml()
public void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwaremodelInstance - public ObjectValue createCopy(ModelInstance targetModelInstance)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.