Package org.jboss.as.controller
Class AttributeMarshaller.AttributeElementMarshaller
- java.lang.Object
-
- org.jboss.as.controller.AttributeMarshaller
-
- org.jboss.as.controller.AttributeMarshaller.AttributeElementMarshaller
-
- Direct Known Subclasses:
AttributeMarshallers.NamedStringListMarshaller
- Enclosing class:
- AttributeMarshaller
public abstract static class AttributeMarshaller.AttributeElementMarshaller extends AttributeMarshaller
Version of marshaller that by default marshalls to element
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeMarshaller
AttributeMarshaller.AttributeElementMarshaller
-
-
Field Summary
-
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 AttributeElementMarshaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isMarshallable(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault)
Gets whether the givenresourceModel
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)
-
Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, marshall, marshallAsAttribute, marshallElementContent
-
-
-
-
Method Detail
-
marshallAsElement
public abstract void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
- Overrides:
marshallAsElement
in classAttributeMarshaller
- Throws:
XMLStreamException
-
isMarshallableAsElement
public boolean isMarshallableAsElement()
- Overrides:
isMarshallableAsElement
in classAttributeMarshaller
-
isMarshallable
public boolean isMarshallable(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault)
Description copied from class:AttributeMarshaller
Gets whether the givenresourceModel
has a value for this attribute that should be marshalled to XML.- Overrides:
isMarshallable
in classAttributeMarshaller
- Parameters:
attribute
- - attribute for which marshaling is being doneresourceModel
- the model, a non-null node ofModelType.OBJECT
.marshallDefault
-true
if the value should be marshalled even if it matches the default value- Returns:
true
if the givenresourceModel
has a defined value under this attribute'sAttributeDefinition.getName()
() name} andmarshallDefault
istrue
or that value differs from this attribute'sdefault value
.
-
-