public abstract static class AttributeMarshallers.MapAttributeMarshaller extends AttributeMarshaller
AttributeMarshaller.AttributeElementMarshaller| Modifier and Type | Field and Description |
|---|---|
protected String |
elementName |
protected boolean |
wrapElement |
protected String |
wrapperElement |
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 and Description |
|---|
MapAttributeMarshaller(String wrapperElement,
String elementName,
boolean wrapElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMarshallableAsElement() |
void |
marshallAsAttribute(AttributeDefinition attribute,
org.jboss.dmr.ModelNode resourceModel,
boolean marshallDefault,
XMLStreamWriter writer)
Marshalls the value from the given
resourceModel as an xml element, if it
is 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) |
isMarshallable, isMarshallable, marshallprotected final String wrapperElement
protected final String elementName
protected final boolean wrapElement
public void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
marshallAsElement in class AttributeMarshallerXMLStreamExceptionpublic void marshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
AttributeMarshallerresourceModel as an xml element, if it
is marshallable.marshallAsAttribute in class AttributeMarshallerattribute - - attribute for which marshaling is being doneresourceModel - the model, a non-null node of ModelType.OBJECT.writer - stream writer to use for writing the attributeXMLStreamException - if thrown by writerpublic boolean isMarshallableAsElement()
isMarshallableAsElement in class AttributeMarshallerpublic abstract void marshallSingleElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode property, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.