Package org.jboss.as.controller
Class DefaultAttributeMarshaller
java.lang.Object
org.jboss.as.controller.AttributeMarshaller
org.jboss.as.controller.DefaultAttributeMarshaller
- 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected StringasString(org.jboss.dmr.ModelNode value) booleanvoidmarshallAsAttribute(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) Methods inherited from class org.jboss.as.controller.AttributeMarshaller
isMarshallable, isMarshallable, marshall, marshallElementContent
-
Constructor Details
-
DefaultAttributeMarshaller
public DefaultAttributeMarshaller()
-
-
Method Details
-
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
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
-