Class SimpleMapAttributeDefinition

All Implemented Interfaces:
Feature

public class SimpleMapAttributeDefinition extends MapAttributeDefinition
MapAttributeDefinition for maps with keys of ModelType.STRING and values of type ModelType
Since:
7.2
Author:
Tomaz Cerar
  • Method Details

    • addValueTypeDescription

      protected void addValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceBundle bundle)
      Specified by:
      addValueTypeDescription in class MapAttributeDefinition
    • addAttributeValueTypeDescription

      protected void addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)
      Specified by:
      addAttributeValueTypeDescription in class MapAttributeDefinition
    • addOperationParameterValueTypeDescription

      protected void addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node, String operationName, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)
      Specified by:
      addOperationParameterValueTypeDescription in class MapAttributeDefinition
    • 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 AttributeDefinition
      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 AttributeDefinition
      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