public class GlobalModulesDefinition extends ListAttributeDefinition
ListAttributeDefinition
implementation for the "global-modules" attribute.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SLOT |
static String |
GLOBAL_MODULES |
static GlobalModulesDefinition |
INSTANCE |
static String |
NAME |
static String |
SLOT |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributeValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
protected void |
addOperationParameterValueTypeDescription(org.jboss.dmr.ModelNode node,
String operationName,
ResourceDescriptionResolver resolver,
Locale locale,
ResourceBundle bundle) |
protected void |
addValueTypeDescription(org.jboss.dmr.ModelNode node,
ResourceBundle bundle) |
void |
marshallAsElement(org.jboss.dmr.ModelNode eeSubSystem,
XMLStreamWriter writer)
Marshalls the value from the given
resourceModel as an xml element, if it
is marshallable . |
org.jboss.dmr.ModelNode |
resolveModelAttribute(OperationContext context,
org.jboss.dmr.ModelNode operationObject)
|
addOperationParameterDescription, addOperationParameterDescription, addResourceAttributeDescription, addResourceAttributeDescription, getElementValidator, parse, parse, parseAndAddParameterElement, parseAndAddParameterElement
correctValue, getAlternatives, getAttributeTextDescription, getDefaultValue, getFlags, getMeasurementUnit, getName, getNoTextDescription, getRequires, getType, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isMarshallable, isMarshallable, isRequired, validateAndSet, validateOperation, validateResolvedOperation
public static final String NAME
public static final String SLOT
public static final String GLOBAL_MODULES
public static final String DEFAULT_SLOT
public static final GlobalModulesDefinition INSTANCE
public org.jboss.dmr.ModelNode resolveModelAttribute(OperationContext context, org.jboss.dmr.ModelNode operationObject) throws OperationFailedException
AttributeDefinition
model
whose key matches this attribute's name
,
resolves it and validates it using this attribute's validator
. If the value is
undefined and a default value
is available, the default value is used.resolveModelAttribute
in class AttributeDefinition
context
- the operation contextoperationObject
- model node of type ModelType.OBJECT
, typically representing a model resourceOperationFailedException
- if the value is not validprotected void addValueTypeDescription(org.jboss.dmr.ModelNode node, ResourceBundle bundle)
addValueTypeDescription
in class ListAttributeDefinition
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 marshallAsElement(org.jboss.dmr.ModelNode eeSubSystem, XMLStreamWriter writer) throws XMLStreamException
AttributeDefinition
resourceModel
as an xml element, if it
is marshallable
.marshallAsElement
in class AttributeDefinition
eeSubSystem
- the model, a non-null node of ModelType.OBJECT
.writer
- stream writer to use for writing the attributeXMLStreamException
- if thrown by writer
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.