public class PrimitiveListAttributeDefinition extends ListAttributeDefinition
Modifier and Type | Class and Description |
---|---|
static class |
PrimitiveListAttributeDefinition.Builder |
AttributeDefinition.NameAndGroup
attributeMarshaller, COMPLEX_TYPES, referenceRecorder
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.
|
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) |
protected void |
addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle) |
protected org.jboss.dmr.ModelNode |
convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
Examine the given element of a parameter list for any expression syntax, converting the relevant node to
ModelType.EXPRESSION if such is supported. |
org.jboss.dmr.ModelType |
getValueType() |
void |
removeCapabilityRequirements(OperationContext context,
org.jboss.dmr.ModelNode attributeValue)
Based on the given attribute value, remove capability requirements.
|
addOperationParameterDescription, addOperationParameterDescription, addResourceAttributeDescription, convertParameterExpressions, getElementValidator, marshallAsElement, parse, parseAndAddParameterElement, parseAndSetParameter
addAccessConstraints, addAllowedValuesToDescription, addDeprecatedInfo, convertStringExpression, correctValue, getAccessConstraints, getAllowedValues, getAlternatives, getArbitraryDescriptors, getAttributeDeprecatedDescription, getAttributeGroup, getAttributeMarshaller, getAttributeTextDescription, getCorrector, getDefaultValue, getDeprecationData, getFlags, getMeasurementUnit, getName, getNoTextDescription, getParser, getReferenceRecorder, getRequires, getType, getUndefinedMetricValue, getValidator, getXmlName, hasAlternative, hasCapabilityRequirements, isAllowed, isAllowExpression, isAllowNull, isDeprecated, isMarshallable, isMarshallable, isNullSignificant, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, resolveModelAttribute, resolveModelAttribute, resolveValue, resolveValue, validateAndSet, validateOperation
public org.jboss.dmr.ModelType getValueType()
public org.jboss.dmr.ModelNode addResourceAttributeDescription(ResourceBundle bundle, String prefix, org.jboss.dmr.ModelNode resourceDescription)
AttributeDefinition
addResourceAttributeDescription
in class ListAttributeDefinition
bundle
- resource bundle to use for text descriptionsprefix
- prefix to prepend to the attribute name key when looking up descriptionsresourceDescription
- the overall resource descriptionprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceBundle bundle)
addValueTypeDescription
in class ListAttributeDefinition
protected void addValueTypeDescription(org.jboss.dmr.ModelNode node)
protected org.jboss.dmr.ModelNode convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
ListAttributeDefinition
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 ListAttributeDefinition
parameterElement
- the node to examine. Will not be null
null
protected void addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)
addAttributeValueTypeDescription
in class ListAttributeDefinition
protected void addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node, String operationName, ResourceDescriptionResolver resolver, Locale locale, ResourceBundle bundle)
addOperationParameterValueTypeDescription
in class ListAttributeDefinition
public void addCapabilityRequirements(OperationContext context, org.jboss.dmr.ModelNode attributeValue)
AttributeDefinition
This 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 AttributeDefinition
context
- the operation contextattributeValue
- the value of the attribute described by this objectpublic void removeCapabilityRequirements(OperationContext context, org.jboss.dmr.ModelNode attributeValue)
AttributeDefinition
This 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 AttributeDefinition
context
- the operation contextattributeValue
- the value of the attribute described by this objectCopyright © 2023 JBoss by Red Hat. All rights reserved.