Class ModelTransaction.ChangeNodeNameOperation
java.lang.Object
org.apache.commons.configuration2.tree.ModelTransaction.Operation
org.apache.commons.configuration2.tree.ModelTransaction.ChangeNodeNameOperation
- Enclosing class:
ModelTransaction
private static final class ModelTransaction.ChangeNodeNameOperation
extends ModelTransaction.Operation
A specialized operation class which changes the name of a node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofChangeNodeNameOperation
and sets the new node name. -
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
-
newName
The new node name.
-
-
Constructor Details
-
ChangeNodeNameOperation
Creates a new instance ofChangeNodeNameOperation
and sets the new node name.- Parameters:
name
- the new node name
-
-
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
-