Class ModelTransaction.AddAttributesOperation
java.lang.Object
org.apache.commons.configuration2.tree.ModelTransaction.Operation
org.apache.commons.configuration2.tree.ModelTransaction.AddAttributesOperation
- Enclosing class:
ModelTransaction
private static final class ModelTransaction.AddAttributesOperation
extends ModelTransaction.Operation
A specialized operation class for adding multiple attributes to a target node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe map with attributes. -
Constructor Summary
ConstructorsConstructorDescriptionAddAttributesOperation(Map<String, Object> attrs) Creates a new instance ofAddAttributesOperation. -
Method Summary
Modifier and TypeMethodDescriptionprotected ImmutableNodeapply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.
-
Field Details
-
attributes
The map with attributes.
-
-
Constructor Details
-
AddAttributesOperation
Creates a new instance ofAddAttributesOperation.- Parameters:
attrs- the map with attributes
-
-
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
-