Class ModelTransaction.Operation
- java.lang.Object
-
- org.apache.commons.configuration2.tree.ModelTransaction.Operation
-
- Direct Known Subclasses:
ModelTransaction.AddAttributeOperation
,ModelTransaction.AddAttributesOperation
,ModelTransaction.ChangeNodeNameOperation
,ModelTransaction.ChangeNodeValueOperation
,ModelTransaction.ChildrenUpdateOperation
,ModelTransaction.RemoveAttributeOperation
- Enclosing class:
- ModelTransaction
private abstract static class ModelTransaction.Operation extends java.lang.Object
An abstract base class representing an operation to be performed on a node. Concrete subclasses implement specific update operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Operation()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract ImmutableNode
apply(ImmutableNode target, ModelTransaction.Operations operations)
Executes this operation on the provided target node returning the result.
-
-
-
Method Detail
-
apply
protected abstract ImmutableNode apply(ImmutableNode target, ModelTransaction.Operations operations)
Executes this operation on the provided target node returning the result.- Parameters:
target
- the target node for this operationoperations
- the currentOperations
instance- Returns:
- the manipulated node
-
-