public abstract class MapAttributeDefinition extends AttributeDefinition
ModelType.OBJECT attribute in a Resource,
where all children of the object have values of the same type; i.e. the attribute represents a logical map of
arbitrary key value pairs.| Constructor and Description |
|---|
MapAttributeDefinition(String name,
boolean allowNull,
ParameterValidator elementValidator) |
MapAttributeDefinition(String name,
String xmlName,
boolean allowNull,
int minSize,
int maxSize,
ParameterValidator elementValidator) |
MapAttributeDefinition(String name,
String xmlName,
boolean allowNull,
int minSize,
int maxSize,
ParameterValidator elementValidator,
String[] alternatives,
String[] requires,
AttributeAccess.Flag... flags) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addAttributeValueTypeDescription(org.jboss.dmr.ModelNode result,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
org.jboss.dmr.ModelNode |
addOperationParameterDescription(org.jboss.dmr.ModelNode resourceDescription,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
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.
|
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 abstract void |
addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode result,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
org.jboss.dmr.ModelNode |
addResourceAttributeDescription(org.jboss.dmr.ModelNode resourceDescription,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
Creates a returns a basic model node describing the attribute, after attaching it to the given overall resource
description model node.
|
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 abstract void |
addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle) |
org.jboss.dmr.ModelNode |
parse(String value,
Location location)
Creates and returns a
ModelNode using the given value after first validating the node
against this object's validator. |
void |
parseAndAddParameterElement(String key,
String value,
org.jboss.dmr.ModelNode operation,
Location location) |
correctValue, getAlternatives, getAttributeTextDescription, getDefaultValue, getFlags, getMeasurementUnit, getName, getNoTextDescription, getRequires, getType, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isMarshallable, isMarshallable, isRequired, marshallAsElement, resolveModelAttribute, validateAndSet, validateOperation, validateResolvedOperationpublic MapAttributeDefinition(String name, boolean allowNull, ParameterValidator elementValidator)
public MapAttributeDefinition(String name, String xmlName, boolean allowNull, int minSize, int maxSize, ParameterValidator elementValidator)
public MapAttributeDefinition(String name, String xmlName, boolean allowNull, int minSize, int maxSize, ParameterValidator elementValidator, String[] alternatives, String[] requires, AttributeAccess.Flag... flags)
public org.jboss.dmr.ModelNode parse(String value, Location location) throws XMLStreamException
ModelNode using the given value after first validating the node
against this object's validator.
If value is null and a default value is available, the value of that
default value will be used.
value - the value. Will be trimmed before use if not null.location - current location of the parser's XMLStreamReader. Used for any exception
messageModelNode representing the parsed valueXMLStreamException - if value is not validpublic void parseAndAddParameterElement(String key, String value, org.jboss.dmr.ModelNode operation, Location location) throws XMLStreamException
XMLStreamExceptionpublic org.jboss.dmr.ModelNode addResourceAttributeDescription(ResourceBundle bundle, String prefix, org.jboss.dmr.ModelNode resourceDescription)
AttributeDefinitionaddResourceAttributeDescription in class AttributeDefinitionbundle - 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 AttributeDefinitionbundle - resource bundle to use for text descriptionsprefix - prefix to prepend to the attribute name key when looking up descriptionsoperationDescription - the overall resource descriptionprotected abstract void addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle)
public org.jboss.dmr.ModelNode addResourceAttributeDescription(org.jboss.dmr.ModelNode resourceDescription,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
AttributeDefinitionaddResourceAttributeDescription in class AttributeDefinitionresourceDescription - the overall resource descriptionresolver - provider of localized text descriptionslocale - locale to pass to the resolverbundle - bundle to pass to the resolverprotected abstract void addAttributeValueTypeDescription(org.jboss.dmr.ModelNode result,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
public org.jboss.dmr.ModelNode addOperationParameterDescription(org.jboss.dmr.ModelNode resourceDescription,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
AttributeDefinitionaddOperationParameterDescription in class AttributeDefinitionresourceDescription - the overall resource descriptionoperationName - the operation nameresolver - provider of localized text descriptionslocale - locale to pass to the resolverbundle - bundle to pass to the resolverprotected abstract void addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode result,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.