public final class NamedValue extends Object
Constructor and Description |
---|
NamedValue(SNamedValue source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
NamedValue(String name,
Value value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the item name.
|
SimpleValue |
getSimpleValue()
Returns simple value.
|
Value |
getValue()
Returns the value.
|
boolean |
isChanged()
Returns true if the initial value was changed.
|
void |
setValue(Value value,
ModelInstance modelInstance)
Sets the new value.
|
SNamedValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
String |
toString() |
public NamedValue(String name, Value value)
name
- value
- NullPointerException
- if modelInstance
or name
or value
is
nullpublic NamedValue(SNamedValue source, ModelInstance modelInstance)
source
- modelInstance
- public SNamedValue toSerializable(SModelInstance smi, MarshallerConfig config)
smi
- config
- public String getName()
public Value getValue()
public SimpleValue getSimpleValue()
public void setValue(Value value, ModelInstance modelInstance)
value
- modelInstance
- NullPointerException
- if value
is nullpublic boolean isChanged()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.