Package org.jboss.as.controller
Class StringListAttributeDefinition
java.lang.Object
org.jboss.as.controller.AttributeDefinition
org.jboss.as.controller.ListAttributeDefinition
org.jboss.as.controller.PrimitiveListAttributeDefinition
org.jboss.as.controller.StringListAttributeDefinition
- All Implemented Interfaces:
Feature
- Author:
- Tomaz Cerar
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jboss.as.controller.AttributeDefinition
AttributeDefinition.NameAndGroup -
Field Summary
Fields inherited from class org.jboss.as.controller.AttributeDefinition
COMPLEX_TYPES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStringListAttributeDefinition(ListAttributeDefinition.Builder<B, A> builder) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue) Based on the given attribute value, add capability requirements.voidremoveCapabilityRequirements(OperationContext context, Resource resource, org.jboss.dmr.ModelNode attributeValue) Based on the given attribute value, remove capability requirements.unwrap(ExpressionResolver context, org.jboss.dmr.ModelNode model) unwrapValue(ExpressionResolver context, org.jboss.dmr.ModelNode model) Methods inherited from class org.jboss.as.controller.PrimitiveListAttributeDefinition
addAttributeValueTypeDescription, addOperationParameterValueTypeDescription, addResourceAttributeDescription, addValueTypeDescription, addValueTypeDescription, convertParameterElementExpressions, getValueAttributeDefinition, getValueTypeMethods inherited from class org.jboss.as.controller.ListAttributeDefinition
addOperationParameterDescription, addOperationParameterDescription, addOperationReplyDescription, addOperationReplyValueTypeDescription, addResourceAttributeDescription, convertParameterExpressions, getElementValidator, marshallAsElement, parseAndAddParameterElementMethods inherited from class org.jboss.as.controller.AttributeDefinition
addAccessConstraints, addAllowedValuesToDescription, addDeprecatedInfo, addOperationReplyDescription, convertStringExpression, correctValue, equals, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMarshaller, getMeasurementUnit, getName, getNoTextDescription, getParser, getReferenceRecorder, getRequires, getStability, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, hasCapabilityRequirements, hashCode, isAllowed, isAllowExpression, isDeprecated, isMarshallable, isMarshallable, isNillable, isNullSignificant, isRequired, isRequired, isResourceOnly, marshallAsElement, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, toString, validateAndSet, validateOperation
-
Constructor Details
-
StringListAttributeDefinition
-
-
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: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 classPrimitiveListAttributeDefinition- Parameters:
context- the operation contextresource- the resource on which requirements are gatheredattributeValue- 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 classPrimitiveListAttributeDefinition- 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
-