Interface AttributeConverter
-
- All Known Implementing Classes:
AttributeConverter.DefaultAttributeConverter,DefaultCheckersAndConverter
public interface AttributeConverterUsed 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 classAttributeConverter.DefaultAttributeConverterA default implementation of AttributeConverterstatic classAttributeConverter.FactoryFactory for common types of AttributeConverters
-
Field Summary
Fields Modifier and Type Field Description static AttributeConverterDEFAULT_VALUEConverter for an existing attribute whose default value has changed.static AttributeConverterNAME_FROM_ADDRESSAn attribute converter which converts the attribute value to be the value of the lastPathElementin thePathAddress
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconvertOperationParameter(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)Converts an operation parametervoidconvertResourceAttribute(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 lastPathElementin 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
-
-