public class ObjectValue extends Object implements SimpleValue, ModelInstanceAware, MarshalCallback
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectValue()
Creates new empty instance of
StringValue. |
|
ObjectValue(ModelInstance modelInstance,
Object value)
Creates new instance of
StringValue. |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
Type |
getCompiledType(ModelProviderClientService modelProviderService)
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.
|
ObjectValue |
makeCopy(ModelInstance targetModelInstance)
Creates copy of the value in the target model instance.
|
void |
postMarshal(javax.xml.bind.Marshaller marshaller)
Callback method invoked after marshalling source to XML.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preMarshal(javax.xml.bind.Marshaller marshaller)
Callback method invoked before marshalling from source to XML.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
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. |
protected ObjectValue()
StringValue.public ObjectValue(ModelInstance modelInstance, Object value)
StringValue.modelInstance - value - NullPointerException - if modelInstance or value is nullpublic 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 void preMarshal(javax.xml.bind.Marshaller marshaller)
MarshalCallbackpreMarshal in interface MarshalCallbackpublic void postMarshal(javax.xml.bind.Marshaller marshaller)
MarshalCallbackpostMarshal in interface MarshalCallbackpublic void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public Type getCompiledType(ModelProviderClientService modelProviderService)
ValuegetCompiledType in interface Valuepublic boolean isSerializedXml()
public void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwaremodelInstance - public ObjectValue makeCopy(ModelInstance targetModelInstance)
ValuemakeCopy in interface SimpleValuemakeCopy in interface ValueCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.