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 ClassesModifier and TypeInterfaceDescriptionstatic classA default implementation of AttributeConverterstatic classFactory for common types of AttributeConverters -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeConverterConverter for an existing attribute whose default value has changed.static final AttributeConverterAn attribute converter which converts the attribute value to be the value of the lastPathElementin thePathAddress -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertOperationParameter(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 Details
-
DEFAULT_VALUE
Converter for an existing attribute whose default value has changed. -
NAME_FROM_ADDRESS
An attribute converter which converts the attribute value to be the value of the lastPathElementin thePathAddress
-
-
Method Details
-
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
-