public class ValueRef extends java.lang.Object implements SimpleValue, ModelInstanceAware
| Constructor and Description |
|---|
ValueRef(ModelInstance modelInstance,
long id)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
ValueRef |
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.
|
java.lang.String |
getType()
Returns the type.
|
java.lang.Long |
getValue()
Returns the contained value.
|
boolean |
isRemoved()
Returns true if value is removed
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
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. |
java.lang.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 ValueRef(ModelInstance modelInstance, long id)
modelInstance - id - java.lang.NullPointerException - if modelInstance is nullpublic SSimpleValue toSerializable(SModelInstance smi, MarshallerConfig config)
SimpleValuetoSerializable in interface SimpleValuetoSerializable in interface Valuepublic java.lang.Long getValue()
SimpleValuegetValue in interface SimpleValuepublic java.lang.String getType()
Valuepublic Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface Valuepublic <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor)
Valuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwaremodelInstance - public ValueRef createCopy(ModelInstance targetModelInstance)
public boolean isRemoved()
Valuepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.