public abstract static class AttributeMarshaller.AttributeElementMarshaller 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 |
|---|
AttributeElementMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMarshallable(AttributeDefinition attribute,
org.jboss.dmr.ModelNode resourceModel,
boolean marshallDefault)
Gets whether the given
resourceModel has a value for this attribute that should be marshalled to XML. |
boolean |
isMarshallableAsElement() |
abstract void |
marshallAsElement(AttributeDefinition attribute,
org.jboss.dmr.ModelNode resourceModel,
boolean marshallDefault,
XMLStreamWriter writer) |
isMarshallable, marshall, marshallAsAttribute, marshallElementContentpublic abstract void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
marshallAsElement in class AttributeMarshallerXMLStreamExceptionpublic boolean isMarshallableAsElement()
isMarshallableAsElement in class AttributeMarshallerpublic boolean isMarshallable(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault)
AttributeMarshallerresourceModel has a value for this attribute that should be marshalled to XML.isMarshallable in class AttributeMarshallerattribute - - attribute for which marshaling is being doneresourceModel - the model, a non-null node of ModelType.OBJECT.marshallDefault - true if the value should be marshalled even if it matches the default valuetrue if the given resourceModel has a defined value under this attribute's AttributeDefinition.getName() () name}
and marshallDefault is true or that value differs from this attribute's default value.Copyright © 2021 JBoss by Red Hat. All rights reserved.