public class DefaultAttributeMarshaller extends AttributeMarshaller
AttributeMarshaller.AttributeElementMarshallerATTRIBUTE_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 |
|---|
DefaultAttributeMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(org.jboss.dmr.ModelNode value) |
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) |
void |
marshallAsElement(AttributeDefinition attribute,
org.jboss.dmr.ModelNode resourceModel,
XMLStreamWriter writer)
Deprecated.
|
isMarshallable, isMarshallable, marshall, marshallElementContentpublic 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 writer@Deprecated public void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
marshallAsElement in class AttributeMarshallerXMLStreamExceptionpublic boolean isMarshallableAsElement()
isMarshallableAsElement in class AttributeMarshallerprotected String asString(org.jboss.dmr.ModelNode value)
Copyright © 2021 JBoss by Red Hat. All rights reserved.