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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarshallable(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault) Gets whether the givenresourceModelhas a value for this attribute that should be marshalled to XML.booleanabstract voidmarshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, marshall, marshallAsAttribute, marshallElementContent
-
Constructor Details
-
AttributeElementMarshaller
public AttributeElementMarshaller()
-
-
Method Details
-
marshallAsElement
public abstract void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException - Overrides:
marshallAsElementin classAttributeMarshaller- Throws:
XMLStreamException
-
isMarshallableAsElement
public boolean isMarshallableAsElement()- Overrides:
isMarshallableAsElementin classAttributeMarshaller
-
isMarshallable
public boolean isMarshallable(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault) Description copied from class:AttributeMarshallerGets whether the givenresourceModelhas a value for this attribute that should be marshalled to XML.- Overrides:
isMarshallablein classAttributeMarshaller- Parameters:
attribute- - attribute for which marshaling is being doneresourceModel- the model, a non-null node ofModelType.OBJECT.marshallDefault-trueif the value should be marshalled even if it matches the default value- Returns:
trueif the givenresourceModelhas a defined value under this attribute'sAttributeDefinition.getName()() name} andmarshallDefaultistrueor that value differs from this attribute'sdefault value.
-