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, parseAndAddParameterElementcorrectValue, getAlternatives, getAttributeTextDescription, getDefaultValue, getFlags, getMeasurementUnit, getName, getNoTextDescription, getRequires, getType, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isMarshallable, isMarshallable, isRequired, validateAndSet, validateOperation, validateResolvedOperationpublic 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
AttributeDefinitionmodel 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 AttributeDefinitioncontext - 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 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 eeSubSystem,
XMLStreamWriter writer)
throws XMLStreamException
AttributeDefinitionresourceModel as an xml element, if it
is marshallable.marshallAsElement in class AttributeDefinitioneeSubSystem - the model, a non-null node of ModelType.OBJECT.writer - stream writer to use for writing the attributeXMLStreamException - if thrown by writerCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.