Class ModelTransaction.ChangeNodeValueOperation
java.lang.Object
org.apache.commons.configuration2.tree.ModelTransaction.Operation
org.apache.commons.configuration2.tree.ModelTransaction.ChangeNodeValueOperation
- Enclosing class:
- ModelTransaction
A specialized operation class which changes the value of a node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChangeNodeValueOperation
(Object value) Creates a new instance ofChangeNodeValueOperation
and initializes it with the new value to set for the node. -
Method Summary
Modifier and TypeMethodDescriptionprotected ImmutableNode
apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.
-
Field Details
-
newValue
The new value for the affected node.
-
-
Constructor Details
-
ChangeNodeValueOperation
Creates a new instance ofChangeNodeValueOperation
and initializes it with the new value to set for the node.- Parameters:
value
- the new node value
-
-
Method Details
-
apply
Description copied from class:ModelTransaction.Operation
Executes this operation on the provided target node returning the result.- Specified by:
apply
in classModelTransaction.Operation
- Parameters:
target
- the target node for this operationoperations
- the currentOperations
instance- Returns:
- the manipulated node
-