public class NamedValue extends Object implements XmlEntity, ModelInstanceAware
Modifier | Constructor and Description |
---|---|
protected |
NamedValue()
Creates new empty instance.
|
|
NamedValue(ModelInstance modelInstance,
long initialVersion,
String name,
Value value)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Long |
getInitialVersion()
Returns initial version.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
String |
getName()
Returns the item name.
|
SimpleValue |
getSimpleValue()
Returns simple value.
|
Value |
getValue()
Returns the value.
|
Long |
getVersion()
Returns version.
|
NamedValue |
makeCopy(ModelInstance modelInstance)
Creates copy.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
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.
|
void |
setValue(Value value)
Sets the new value.
|
String |
toString() |
protected NamedValue()
public NamedValue(ModelInstance modelInstance, long initialVersion, String name, Value value)
modelInstance
- name
- value
- NullPointerException
- if modelInstance
or name
or value
is
nullpublic String getName()
public Value getValue()
public SimpleValue getSimpleValue()
public void setValue(Value value)
value
- NullPointerException
- if value
is nullpublic Long getInitialVersion()
public Long getVersion()
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
preUnmarshal
in interface UnmarshalCallback
parent
- 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)
UnmarshalCallback
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public void rebind(ModelInstance modelInstance)
rebind
in interface ModelInstanceAware
modelInstance
- public NamedValue makeCopy(ModelInstance modelInstance)
modelInstance
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.