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
An abstract base class representing an operation to be performed on a node. Concrete subclasses implement specific
update operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ImmutableNode
apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.
-
Constructor Details
-
Operation
private Operation()
-
-
Method Details
-
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
-