public class ObjectListAttributeDefinition extends ListAttributeDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectListAttributeDefinition.Builder |
AttributeDefinition.NameAndGroupattributeMarshaller, COMPLEX_TYPES, referenceRecorder| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllowedValuesToDescription(org.jboss.dmr.ModelNode result,
ParameterValidator validator)
Adds the allowed values.
|
protected void |
addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
void |
addCapabilityRequirements(OperationContext context,
Resource resource,
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,
boolean forOperation,
ResourceDescriptionResolver resolver,
Locale locale) |
protected org.jboss.dmr.ModelNode |
convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
Uses the
ObjectTypeAttributeDefinition passed to the constructor to
convert the element's expressions. |
void |
marshallAsElement(org.jboss.dmr.ModelNode resourceModel,
boolean marshalDefault,
XMLStreamWriter writer)
Marshalls the value from the given
resourceModel as an xml element, if it
is marshallable. |
void |
removeCapabilityRequirements(OperationContext context,
Resource resource,
org.jboss.dmr.ModelNode attributeValue)
Based on the given attribute value, remove capability requirements.
|
org.jboss.dmr.ModelNode |
resolveValue(ExpressionResolver resolver,
org.jboss.dmr.ModelNode value)
Overrides the superclass implementation to allow the value type's AttributeDefinition to in turn
resolve each element.
|
addOperationParameterDescription, addOperationReplyDescription, addOperationReplyValueTypeDescription, addResourceAttributeDescription, convertParameterExpressions, getElementValidator, parse, parseAndAddParameterElement, parseAndSetParameteraddAccessConstraints, addCapabilityRequirements, addDeprecatedInfo, addOperationReplyDescription, 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, isNillable, isNullSignificant, isRequired, isRequired, isResourceOnly, isValidatingNull, marshallAsElement, removeCapabilityRequirements, resolveModelAttribute, resolveModelAttribute, resolveValue, validateAndSet, validateOperationpublic 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, Resource resource, 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, Resource resource, 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 contextresource - 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 objectprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle)
addValueTypeDescription in class ListAttributeDefinitionprotected 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 ListAttributeDefinitionpublic void marshallAsElement(org.jboss.dmr.ModelNode resourceModel,
boolean marshalDefault,
XMLStreamWriter writer)
throws XMLStreamException
AttributeDefinitionresourceModel as an xml element, if it
is marshallable.marshallAsElement in class ListAttributeDefinitionresourceModel - the model, a non-null node of ModelType.OBJECT.marshalDefault - true if the value should be marshalled even if it matches the default valuewriter - stream writer to use for writing the attributeXMLStreamException - if thrown by writerpublic org.jboss.dmr.ModelNode resolveValue(ExpressionResolver resolver, org.jboss.dmr.ModelNode value) throws OperationFailedException
value, resolves it using the given resolver
and validates it using this attribute's validator. If the value is
undefined and a default value is available, the default value is used.resolveValue in class AttributeDefinitionresolver - the expression resolvervalue - a node that is expected to be a valid value for an attribute defined by this definitionvalue is not definedOperationFailedException - if the value is not validprotected org.jboss.dmr.ModelNode convertParameterElementExpressions(org.jboss.dmr.ModelNode parameterElement)
ObjectTypeAttributeDefinition passed to the constructor to
convert the element's expressions.
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 nullnullprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node,
String prefix,
ResourceBundle bundle,
boolean forOperation,
ResourceDescriptionResolver resolver,
Locale locale)
protected void addAllowedValuesToDescription(org.jboss.dmr.ModelNode result,
ParameterValidator validator)
AttributeDefinitionaddAllowedValuesToDescription in class AttributeDefinitionresult - the node to add the allowed values tovalidator - the validator to get the allowed values fromCopyright © 2017 JBoss by Red Hat. All rights reserved.