Class StringListAttributeDefinition

All Implemented Interfaces:
Feature

public class StringListAttributeDefinition extends PrimitiveListAttributeDefinition
Author:
Tomaz Cerar
  • Constructor Details

  • Method Details

    • unwrap

      public List<String> unwrap(ExpressionResolver context, org.jboss.dmr.ModelNode model) throws OperationFailedException
      Throws:
      OperationFailedException
    • unwrapValue

      public static List<String> unwrapValue(ExpressionResolver context, org.jboss.dmr.ModelNode model) throws OperationFailedException
      Throws:
      OperationFailedException
    • addCapabilityRequirements

      public void addCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue)
      Description copied from class: AttributeDefinition
      Based on the given attribute value, add capability requirements. If this definition is for an attribute whose value is or contains a reference to the name of some capability, this method should record the addition of a requirement for the capability.

      This is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.

      Overrides:
      addCapabilityRequirements in class PrimitiveListAttributeDefinition
      Parameters:
      context - the operation context
      resource - the resource on which requirements are gathered
      attributeValue - the value of the attribute described by this object
    • removeCapabilityRequirements

      public void removeCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue)
      Description copied from class: AttributeDefinition
      Based on the given attribute value, remove capability requirements. If this definition is for an attribute whose value is or contains a reference to the name of some capability, this method should record the removal of a requirement for the capability.

      This is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.

      Overrides:
      removeCapabilityRequirements in class PrimitiveListAttributeDefinition
      Parameters:
      context - the operation context
      resource - resource from which capability requirement is to be removed from, null is legal value in case that CapabilityReferenceRecorder doesn't require it.
      attributeValue - the value of the attribute described by this object