Package org.jboss.as.controller
Class DefaultAttributeMarshaller
- java.lang.Object
-
- org.jboss.as.controller.AttributeMarshaller
-
- org.jboss.as.controller.DefaultAttributeMarshaller
-
public class DefaultAttributeMarshaller extends AttributeMarshaller
- Author:
- Tomaz Cerar (c) 2012 Red Hat Inc.
-
-
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 DefaultAttributeMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 givenresourceModel
as an xml element, if itis marshallable
.void
marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer)
-
Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, isMarshallable, marshall, marshallElementContent
-
-
-
-
Method Detail
-
marshallAsAttribute
public void marshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
Description copied from class:AttributeMarshaller
Marshalls the value from the givenresourceModel
as an xml element, if itis marshallable
.- Overrides:
marshallAsAttribute
in 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
-
marshallAsElement
public 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
-
asString
protected String asString(org.jboss.dmr.ModelNode value)
-
-