Package org.jboss.as.controller
Class AttributeMarshallers.MapAttributeMarshaller
- java.lang.Object
-
- org.jboss.as.controller.AttributeMarshaller
-
- org.jboss.as.controller.AttributeMarshallers.MapAttributeMarshaller
-
- Direct Known Subclasses:
AttributeMarshallers.ObjectMapAttributeMarshaller
,AttributeMarshallers.PropertiesAttributeMarshaller
- Enclosing interface:
- AttributeMarshallers
public abstract static class AttributeMarshallers.MapAttributeMarshaller extends AttributeMarshaller
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeMarshaller
AttributeMarshaller.AttributeElementMarshaller
-
-
Field Summary
Fields Modifier and Type Field Description protected String
elementName
protected boolean
wrapElement
protected String
wrapperElement
-
Fields inherited from class org.jboss.as.controller.AttributeMarshaller
ATTRIBUTE_OBJECT, COMMA_STRING_LIST, ELEMENT_ONLY_OBJECT, OBJECT_LIST_MARSHALLER, OBJECT_MAP_MARSHALLER, PROPERTIES_MARSHALLER, PROPERTIES_MARSHALLER_UNWRAPPED, SIMPLE, STRING_LIST, UNWRAPPED_OBJECT_LIST_MARSHALLER, WRAPPED_OBJECT_LIST_MARSHALLER
-
-
Constructor Summary
Constructors Constructor Description MapAttributeMarshaller(String wrapperElement, String elementName, boolean wrapElement)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isMarshallableAsElement()
void
marshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer)
Marshalls the value from the givenresourceModel
as an xml element, if itis marshallable
.void
marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer)
abstract void
marshallSingleElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode property, boolean marshallDefault, XMLStreamWriter writer)
-
Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, isMarshallable, marshall, marshallElementContent
-
-
-
-
Method Detail
-
marshallAsElement
public void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
- Overrides:
marshallAsElement
in classAttributeMarshaller
- Throws:
XMLStreamException
-
marshallAsAttribute
public void marshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
Description copied from class:AttributeMarshaller
Marshalls the value from the givenresourceModel
as an xml element, if itis marshallable
.- Overrides:
marshallAsAttribute
in classAttributeMarshaller
- Parameters:
attribute
- - attribute for which marshaling is being doneresourceModel
- the model, a non-null node ofModelType.OBJECT
.writer
- stream writer to use for writing the attribute- Throws:
XMLStreamException
- if thrown bywriter
-
isMarshallableAsElement
public boolean isMarshallableAsElement()
- Overrides:
isMarshallableAsElement
in classAttributeMarshaller
-
marshallSingleElement
public abstract void marshallSingleElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode property, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
- Throws:
XMLStreamException
-
-