Class ModelTransaction.RemoveAttributeOperation
java.lang.Object
org.apache.commons.configuration2.tree.ModelTransaction.Operation
org.apache.commons.configuration2.tree.ModelTransaction.RemoveAttributeOperation
- Enclosing class:
ModelTransaction
private static final class ModelTransaction.RemoveAttributeOperation
extends ModelTransaction.Operation
A specialized operation class for removing an attribute from a target node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofRemoveAttributeOperation. -
Method Summary
Modifier and TypeMethodDescriptionprotected ImmutableNodeapply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.
-
Field Details
-
attributeName
The attribute name.
-
-
Constructor Details
-
RemoveAttributeOperation
Creates a new instance ofRemoveAttributeOperation.- Parameters:
name- the name of the attribute
-
-
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
-