Package org.jboss.as.controller
Class ObjectMapAttributeDefinition
- java.lang.Object
-
- org.jboss.as.controller.AttributeDefinition
-
- org.jboss.as.controller.MapAttributeDefinition
-
- org.jboss.as.controller.ObjectMapAttributeDefinition
-
public class ObjectMapAttributeDefinition extends MapAttributeDefinition
MapAttributeDefinitionfor maps with keys ofModelType.STRINGand values of typeObjectTypeAttributeDefinition- Since:
- 11.0
- Author:
- Tomaz Cerar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectMapAttributeDefinition.Builder-
Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeDefinition
AttributeDefinition.NameAndGroup
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.MapAttributeDefinition
LIST_TO_MAP_CORRECTOR
-
Fields inherited from class org.jboss.as.controller.AttributeDefinition
attributeMarshaller, COMPLEX_TYPES, referenceRecorder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)voidaddCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue)Based on the given attribute value, add capability requirements.protected voidaddOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node, String operationName, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)protected voidaddValueTypeDescription(org.jboss.dmr.ModelNode node, String prefix, ResourceBundle bundle, boolean forOperation, ResourceDescriptionResolver resolver, Locale locale)protected voidaddValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceBundle bundle)static ObjectMapAttributeDefinition.Buildercreate(String name, ObjectTypeAttributeDefinition valueType)ObjectTypeAttributeDefinitiongetValueType()voidremoveCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue)Based on the given attribute value, remove capability requirements.-
Methods inherited from class org.jboss.as.controller.MapAttributeDefinition
addOperationParameterDescription, addOperationParameterDescription, addOperationReplyDescription, addResourceAttributeDescription, addResourceAttributeDescription, convertParameterElementExpressions, convertParameterExpressions, getElementValidator, marshallAsElement, parse, parseAndAddParameterElement
-
Methods inherited from class org.jboss.as.controller.AttributeDefinition
addAccessConstraints, addAllowedValuesToDescription, addCapabilityRequirements, addDeprecatedInfo, addOperationReplyDescription, convertStringExpression, correctValue, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeMarshaller, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMarshaller, getMeasurementUnit, getName, getNoTextDescription, getParser, getReferenceRecorder, getRequires, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, hasCapabilityRequirements, isAllowed, isAllowExpression, isAllowNull, isDeprecated, isMarshallable, isMarshallable, isNillable, isNullSignificant, isRequired, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, removeCapabilityRequirements, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperation
-
-
-
-
Method Detail
-
addCapabilityRequirements
public void addCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue)
Description copied from class:AttributeDefinitionBased 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:
addCapabilityRequirementsin classAttributeDefinition- Parameters:
context- the operation contextattributeValue- 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:AttributeDefinitionBased 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:
removeCapabilityRequirementsin classAttributeDefinition- Parameters:
context- the operation contextresource- resource from which capability requirement is to be removed from,nullis legal value in case thatCapabilityReferenceRecorderdoesn't require it.attributeValue- the value of the attribute described by this object
-
addOperationParameterValueTypeDescription
protected void addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node, String operationName, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)- Specified by:
addOperationParameterValueTypeDescriptionin classMapAttributeDefinition
-
addValueTypeDescription
protected void addValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceBundle bundle)- Specified by:
addValueTypeDescriptionin classMapAttributeDefinition
-
addAttributeValueTypeDescription
protected void addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)- Specified by:
addAttributeValueTypeDescriptionin classMapAttributeDefinition
-
addValueTypeDescription
protected void addValueTypeDescription(org.jboss.dmr.ModelNode node, String prefix, ResourceBundle bundle, boolean forOperation, ResourceDescriptionResolver resolver, Locale locale)
-
getValueType
public final ObjectTypeAttributeDefinition getValueType()
-
create
public static ObjectMapAttributeDefinition.Builder create(String name, ObjectTypeAttributeDefinition valueType)
-
-