public static final class AttributeParser.DiscardOldDefaultValueParser extends AttributeParser
AttributeParser.DiscardOldDefaultValueParserCOMMA_DELIMITED_STRING_LIST, LIST, OBJECT_LIST_PARSER, OBJECT_PARSER, PROPERTIES_PARSER, PROPERTIES_PARSER_UNWRAPPED, SIMPLE, STRING_LIST, UNWRAPPED_OBJECT_LIST_PARSER, WRAPPED_OBJECT_LIST_PARSER| 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, parseElementpublic DiscardOldDefaultValueParser(String value)
public org.jboss.dmr.ModelNode parse(AttributeDefinition attribute, String value, XMLStreamReader reader) throws XMLStreamException
AttributeParserModelNode 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 AttributeParservalue - 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 © 2022 JBoss by Red Hat. All rights reserved.