Interface AttributeConverter
-
- All Known Implementing Classes:
AttributeConverter.DefaultAttributeConverter
,DefaultCheckersAndConverter
public interface AttributeConverter
Used to convert an individual attribute/operation parameter value during transformation. Conversion can both mean modifying an existing attribute/parameter, or adding a new one.- Author:
- Kabir Khan
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AttributeConverter.DefaultAttributeConverter
A default implementation of AttributeConverterstatic class
AttributeConverter.Factory
Factory for common types of AttributeConverters
-
Field Summary
Fields Modifier and Type Field Description static AttributeConverter
DEFAULT_VALUE
Converter for an existing attribute whose default value has changed.static AttributeConverter
NAME_FROM_ADDRESS
An attribute converter which converts the attribute value to be the value of the lastPathElement
in thePathAddress
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
convertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
Converts an operation parametervoid
convertResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
Converts a resource attribute
-
-
-
Field Detail
-
DEFAULT_VALUE
static final AttributeConverter DEFAULT_VALUE
Converter for an existing attribute whose default value has changed.
-
NAME_FROM_ADDRESS
static final AttributeConverter NAME_FROM_ADDRESS
An attribute converter which converts the attribute value to be the value of the lastPathElement
in thePathAddress
-
-
Method Detail
-
convertOperationParameter
void convertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
Converts an operation parameter- Parameters:
address
- the address of the operationattributeName
- the name of the operation parameterattributeValue
- the value of the operation parameter to be convertedoperation
- the operation executed. This is unmodifiable.context
- the context of the transformation
-
convertResourceAttribute
void convertResourceAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
Converts a resource attribute- Parameters:
address
- the address of the operationattributeName
- the name of the attributeattributeValue
- the value of the attribute to be convertedcontext
- the context of the transformation
-
-