public class BasicTypeValue extends NodeValue<Serializable>
The value is wrapped into a StateNode and this feature instead being
sent directly. It allows to use basic types in lists.
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
BasicTypeValue(StateNode node)
Creates a new value map for the given node.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getKey()
Gets the key that should be used when the value of this feature is sent
to the client.
|
Serializable |
getValue()
Gets the value of a basic type.
|
void |
setValue(Serializable value)
Sets the value of a basic type.
|
collectChanges, forEachChild, generateChangesFromEmptyallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetachpublic BasicTypeValue(StateNode node)
node - the node that the map belongs toprotected String getKey()
NodeValueThe key is fetched on demand from the sub class instead of e.g. requiring it as a constructor parameter to avoid storing an additional member field in each instance.
getKey in class NodeValue<Serializable>nullpublic void setValue(Serializable value)
setValue in class NodeValue<Serializable>value - the value to setpublic Serializable getValue()
getValue in class NodeValue<Serializable>Copyright © 2025. All rights reserved.