Interface Attribute

  • All Superinterfaces:
    Definable<org.jboss.as.controller.AttributeDefinition>
    All Known Subinterfaces:
    Metric<C>
    All Known Implementing Classes:
    SimpleAttribute

    public interface Attribute
    extends Definable<org.jboss.as.controller.AttributeDefinition>
    Interface to be implemented by attribute enumerations.
    Author:
    Paul Ferraro
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default String getName()
      Returns the name of this attribute.
      default org.jboss.dmr.ModelNode resolveModelAttribute​(org.jboss.as.controller.ExpressionResolver resolver, org.jboss.dmr.ModelNode model)
      Resolves the value of this attribute from the specified model applying any default value.
    • Method Detail

      • getName

        default String getName()
        Returns the name of this attribute.
        Returns:
        the attribute name
      • resolveModelAttribute

        default org.jboss.dmr.ModelNode resolveModelAttribute​(org.jboss.as.controller.ExpressionResolver resolver,
                                                              org.jboss.dmr.ModelNode model)
                                                       throws org.jboss.as.controller.OperationFailedException
        Resolves the value of this attribute from the specified model applying any default value.
        Parameters:
        resolver - an expression resolver
        model - the resource model
        Returns:
        the resolved value
        Throws:
        org.jboss.as.controller.OperationFailedException - if the value was not valid