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
  • Field Details

    • 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 last PathElement in the PathAddress
  • 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 operation
      attributeName - the name of the operation parameter
      attributeValue - the value of the operation parameter to be converted
      operation - 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 operation
      attributeName - the name of the attribute
      attributeValue - the value of the attribute to be converted
      context - the context of the transformation