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 Deprecated Methods Modifier and Type Method Description protected StringasString(org.jboss.dmr.ModelNode value)booleanisMarshallableAsElement()voidmarshallAsAttribute(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer)Marshalls the value from the givenresourceModelas an xml element, if itis marshallable.voidmarshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer)voidmarshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, XMLStreamWriter writer)Deprecated.-
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:AttributeMarshallerMarshalls the value from the givenresourceModelas an xml element, if itis marshallable.- Overrides:
marshallAsAttributein 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
@Deprecated public void marshallAsElement(AttributeDefinition attribute, org.jboss.dmr.ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException
Deprecated.- Throws:
XMLStreamException
-
marshallAsElement
public 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
-
asString
protected String asString(org.jboss.dmr.ModelNode value)
-
-