public static final class AttributeParser.DiscardOldDefaultValueParser extends AttributeParser
AttributeParser.DiscardOldDefaultValueParser
COMMA_DELIMITED_STRING_LIST, LIST, OBJECT_LIST_PARSER, OBJECT_PARSER, PROPERTIES_PARSER, PROPERTIES_PARSER_UNWRAPPED, SIMPLE, STRING_LIST
Constructor and Description |
---|
DiscardOldDefaultValueParser(String value) |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
parse(AttributeDefinition attribute,
String value,
XMLStreamReader reader)
Creates and returns a
ModelNode using the given value after first validating the node
against this object's validator . |
getXmlName, isParseAsElement, parseAndSetParameter, parseElement
public DiscardOldDefaultValueParser(String value)
public org.jboss.dmr.ModelNode parse(AttributeDefinition attribute, String value, XMLStreamReader reader) throws XMLStreamException
AttributeParser
ModelNode
using the given value
after first validating the node
against this object's validator
.
If value
is null
an undefined
node will be returned.
parse
in class AttributeParser
value
- the value. Will be trimmed
before use if not null
.reader
- XMLStreamReader
from which the location
from which
the attribute value was read can be obtained and used in any XMLStreamException
, in case
the given value is invalid.ModelNode
representing the parsed valueXMLStreamException
- if value
is not validAttributeParser.parseAndSetParameter(org.jboss.as.controller.AttributeDefinition, String, ModelNode, XMLStreamReader)
Copyright © 2023 JBoss by Red Hat. All rights reserved.