public class SimpleListAttributeDefinition extends ListAttributeDefinition
AttributeDefinition for attributes that represent lists with
simple element types (i.e. not ModelType.LIST or ModelType.OBJECT.
Date: 13.10.2011| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleListAttributeDefinition.Builder |
AttributeDefinition.NameAndGroupattributeMarshaller, COMPLEX_TYPES, referenceRecorder| Modifier | Constructor and Description |
|---|---|
protected |
SimpleListAttributeDefinition(ListAttributeDefinition.Builder builder,
AttributeDefinition valueType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
void |
addCapabilityRequirements(OperationContext context,
org.jboss.dmr.ModelNode attributeValue)
Based on the given attribute value, add capability requirements.
|
org.jboss.dmr.ModelNode |
addOperationParameterDescription(ResourceBundle bundle,
String prefix,
org.jboss.dmr.ModelNode operationDescription)
Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the
given overall operation description model node.
|
protected void |
addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
org.jboss.dmr.ModelNode |
addResourceAttributeDescription(ResourceBundle bundle,
String prefix,
org.jboss.dmr.ModelNode resourceDescription)
Creates a returns a basic model node describing the attribute, after attaching it to the given overall resource
description model node.
|
protected void |
addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle) |
protected void |
addValueTypeDescription(org.jboss.dmr.ModelNode node,
String prefix,
ResourceBundle bundle) |
protected org.jboss.dmr.ModelNode |
convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
Overrides
the superclass
to check that expressions are supported yet the valueType passed to the constructor is one of
the complex DMR types. |
protected CapabilityReferenceRecorder |
getReferenceRecorder() |
AttributeDefinition |
getValueType() |
boolean |
hasCapabilityRequirements()
Based on the given attribute value, tell if attribute has any capability requirements.
|
void |
removeCapabilityRequirements(OperationContext context,
org.jboss.dmr.ModelNode attributeValue)
Based on the given attribute value, remove capability requirements.
|
addOperationParameterDescription, addResourceAttributeDescription, convertParameterExpressions, getElementValidator, marshallAsElement, parse, parseAndAddParameterElement, parseAndSetParameteraddAccessConstraints, addAllowedValuesToDescription, addDeprecatedInfo, convertStringExpression, correctValue, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeMarshaller, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMeasurementUnit, getName, getNoTextDescription, getParser, getRequires, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isDeprecated, isMarshallable, isMarshallable, isNullSignificant, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperationprotected SimpleListAttributeDefinition(ListAttributeDefinition.Builder builder, AttributeDefinition valueType)
public AttributeDefinition getValueType()
public org.jboss.dmr.ModelNode addResourceAttributeDescription(ResourceBundle bundle, String prefix, org.jboss.dmr.ModelNode resourceDescription)
AttributeDefinitionaddResourceAttributeDescription in class ListAttributeDefinitionbundle - resource bundle to use for text descriptionsprefix - prefix to prepend to the attribute name key when looking up descriptionsresourceDescription - the overall resource descriptionpublic org.jboss.dmr.ModelNode addOperationParameterDescription(ResourceBundle bundle, String prefix, org.jboss.dmr.ModelNode operationDescription)
AttributeDefinitionaddOperationParameterDescription in class ListAttributeDefinitionbundle - resource bundle to use for text descriptionsprefix - prefix to prepend to the attribute name key when looking up descriptionsoperationDescription - the overall resource descriptionpublic void addCapabilityRequirements(OperationContext context, org.jboss.dmr.ModelNode attributeValue)
AttributeDefinitionThis is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.
addCapabilityRequirements in class AttributeDefinitioncontext - the operation contextattributeValue - the value of the attribute described by this objectpublic void removeCapabilityRequirements(OperationContext context, org.jboss.dmr.ModelNode attributeValue)
AttributeDefinitionThis is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.
removeCapabilityRequirements in class AttributeDefinitioncontext - the operation contextattributeValue - the value of the attribute described by this objectprotected CapabilityReferenceRecorder getReferenceRecorder()
getReferenceRecorder in class AttributeDefinitionpublic boolean hasCapabilityRequirements()
AttributeDefinitionThis is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.
hasCapabilityRequirements in class AttributeDefinitionprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle)
addValueTypeDescription in class ListAttributeDefinitionprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node,
String prefix,
ResourceBundle bundle)
protected void addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
addAttributeValueTypeDescription in class ListAttributeDefinitionprotected void addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
addOperationParameterValueTypeDescription in class ListAttributeDefinitionprotected org.jboss.dmr.ModelNode convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
the superclass
to check that expressions are supported yet the valueType passed to the constructor is one of
the complex DMR types. If it is, an IllegalStateException is thrown, as this
implementation cannot properly handle such a combination.
Examine the given element of a parameter list for any expression syntax, converting the relevant node to
ModelType.EXPRESSION if such is supported. This implementation will only convert elements of
ModelType.STRING. Subclasses that need to handle complex elements should override this method.convertParameterElementExpressions in class ListAttributeDefinitionparameterElement - the node to examine. Will not be nullnullIllegalStateException - if expressions are supported, but the valueType is complexCopyright © 2015 JBoss by Red Hat. All rights reserved.