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 ofChangeNodeNameOperationand sets the new node name. -
Method Summary
Modifier and TypeMethodDescriptionprotected ImmutableNodeapply(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 ofChangeNodeNameOperationand sets the new node name.- Parameters:
name- the new node name
-
-
Method Details
-
apply
Description copied from class:ModelTransaction.OperationExecutes this operation on the provided target node returning the result.- Specified by:
applyin classModelTransaction.Operation- Parameters:
target- the target node for this operationoperations- the currentOperationsinstance- Returns:
- the manipulated node
-