Package org.jboss.as.controller
Class AttributeParser.DiscardOldDefaultValueParser
- java.lang.Object
-
- org.jboss.as.controller.AttributeParser
-
- org.jboss.as.controller.AttributeParser.DiscardOldDefaultValueParser
-
- Enclosing class:
- AttributeParser
public static final class AttributeParser.DiscardOldDefaultValueParser extends AttributeParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.controller.AttributeParser
AttributeParser.DiscardOldDefaultValueParser
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.AttributeParser
COMMA_DELIMITED_STRING_LIST, OBJECT_LIST_PARSER, OBJECT_PARSER, PROPERTIES_PARSER, PROPERTIES_PARSER_UNWRAPPED, SIMPLE, STRING_LIST, UNWRAPPED_OBJECT_LIST_PARSER, WRAPPED_OBJECT_LIST_PARSER
-
-
Constructor Summary
Constructors Constructor Description DiscardOldDefaultValueParser(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNode
parse(AttributeDefinition attribute, String value, XMLStreamReader reader)
Creates and returns aModelNode
using the givenvalue
after first validating the node againstthis object's validator
.-
Methods inherited from class org.jboss.as.controller.AttributeParser
getXmlName, isParseAsElement, parseAndSetParameter, parseElement
-
-
-
-
Constructor Detail
-
DiscardOldDefaultValueParser
public DiscardOldDefaultValueParser(String value)
-
-
Method Detail
-
parse
public org.jboss.dmr.ModelNode parse(AttributeDefinition attribute, String value, XMLStreamReader reader) throws XMLStreamException
Description copied from class:AttributeParser
Creates and returns aModelNode
using the givenvalue
after first validating the node againstthis object's validator
.If
value
isnull
anundefined
node will be returned.- Overrides:
parse
in classAttributeParser
value
- the value. Will betrimmed
before use if notnull
.reader
-XMLStreamReader
from which thelocation
from which the attribute value was read can be obtained and used in anyXMLStreamException
, in case the given value is invalid.- Returns:
ModelNode
representing the parsed value- Throws:
XMLStreamException
- ifvalue
is not valid- See Also:
AttributeParser.parseAndSetParameter(org.jboss.as.controller.AttributeDefinition, String, ModelNode, XMLStreamReader)
-
-