public class LiveConnectorRefAttribute extends SimpleAttributeDefinition
Modifier and Type | Field and Description |
---|---|
static LiveConnectorRefAttribute |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
marshallAsAttribute(org.jboss.dmr.ModelNode resourceModel,
boolean marshallDefault,
XMLStreamWriter writer)
Marshalls the value from the given
resourceModel as an xml attribute, if it
is marshallable . |
void |
marshallAsElement(org.jboss.dmr.ModelNode resourceModel,
boolean marshallDefault,
XMLStreamWriter writer)
This implementation marshalls the attribute value as text content of the element.
|
marshallAsAttribute, marshallAsElement, parse, parse, parseAndSetParameter, parseAndSetParameter
addOperationParameterDescription, addOperationParameterDescription, addResourceAttributeDescription, addResourceAttributeDescription, correctValue, getAlternatives, getAttributeTextDescription, getDefaultValue, getFlags, getMeasurementUnit, getName, getNoTextDescription, getRequires, getType, getValidator, getXmlName, hasAlternative, isAllowed, isAllowExpression, isAllowNull, isMarshallable, isMarshallable, isRequired, resolveModelAttribute, validateAndSet, validateOperation, validateResolvedOperation
public static final LiveConnectorRefAttribute INSTANCE
public void marshallAsAttribute(org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
SimpleAttributeDefinition
resourceModel
as an xml attribute, if it
is marshallable
.marshallAsAttribute
in class SimpleAttributeDefinition
resourceModel
- the model, a non-null node of ModelType.OBJECT
.marshallDefault
- true
if the value should be marshalled even if it matches the default valuewriter
- stream writer to use for writing the attributeXMLStreamException
- if writer
throws an exceptionpublic void marshallAsElement(org.jboss.dmr.ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException
SimpleAttributeDefinition
marshallAsElement
in class SimpleAttributeDefinition
XMLStreamException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.