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
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final booleanprotected final StringFields 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
ConstructorsConstructorDescriptionMapAttributeMarshaller(String wrapperElement, String elementName, boolean wrapElement) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidmarshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) Marshalls the value from the givenresourceModelas an xml element, if itis marshallable.voidmarshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) abstract voidmarshallSingleElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode property, boolean marshallDefault, XMLStreamWriter writer) Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, isMarshallable, marshall, marshallElementContent
-
Field Details
-
wrapperElement
-
elementName
-
wrapElement
protected final boolean wrapElement
-
-
Constructor Details
-
MapAttributeMarshaller
-
-
Method Details
-
marshallAsElement
public void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException - Overrides:
marshallAsElementin classAttributeMarshaller- Throws:
XMLStreamException
-
marshallAsAttribute
public void marshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException Description copied from class:AttributeMarshallerMarshalls the value from the givenresourceModelas an xml element, if itis marshallable.- Overrides:
marshallAsAttributein 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:
isMarshallableAsElementin classAttributeMarshaller
-
marshallSingleElement
public abstract void marshallSingleElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode property, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException - Throws:
XMLStreamException
-