Interface AttributeTranslation


  • public interface AttributeTranslation
    Describes an attribute translation.
    Author:
    Paul Ferraro
    • Method Detail

      • getTargetAttribute

        org.jboss.as.controller.AttributeDefinition getTargetAttribute()
        Returns the target attribute definition of this translation
        Returns:
        the target attribute definition
      • getReadAttributeOperationTranslator

        AttributeTranslation.AttributeValueTranslator getReadAttributeOperationTranslator()
        Returns the translator of an attribute value for use by "read-attribute" operations.
        Returns:
        an attribute translator
      • getWriteAttributeOperationTranslator

        AttributeTranslation.AttributeValueTranslator getWriteAttributeOperationTranslator()
        Returns the translator of an attribute value for use by "write-attribute" operations.
        Returns:
        an attribute translator
      • getPathAddressTranslator

        default UnaryOperator<org.jboss.as.controller.PathAddress> getPathAddressTranslator()
        Returns a function that return the target PathAddress of the resource from which the translated attribute value should be read.
        Returns:
        a path address transformation function
      • alias

        static AttributeTranslation alias​(org.jboss.as.controller.AttributeDefinition targetAttribute)
      • relocate

        static AttributeTranslation relocate​(org.jboss.as.controller.AttributeDefinition targetAttribute,
                                             UnaryOperator<org.jboss.as.controller.PathAddress> addressTranslator)
      • singletonList

        static AttributeTranslation singletonList​(org.jboss.as.controller.AttributeDefinition targetAttribute)