public abstract class AbstractParser extends Object
Constructor and Description |
---|
AbstractParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
parseExtension(org.jboss.staxmapper.XMLExtendedStreamReader reader,
String enclosingTag,
org.jboss.dmr.ModelNode operation,
org.jboss.as.controller.SimpleAttributeDefinition extensionClassName,
org.jboss.as.controller.PropertiesAttributeDefinition extensionProperties) |
String |
rawAttributeText(XMLStreamReader reader,
String attributeName)
Reads and trims the text for the given attribute and returns it or
null |
String |
rawAttributeText(XMLStreamReader reader,
String attributeName,
String defaultValue)
Reads and trims the text for the given attribute and returns it or
defaultValue if there is no
value for the attribute |
String |
rawElementText(XMLStreamReader reader)
Reads and trims the element text and returns it or
null |
public String rawElementText(XMLStreamReader reader) throws XMLStreamException
null
reader
- source for the element textnull
if there is none or it is an empty stringXMLStreamException
public String rawAttributeText(XMLStreamReader reader, String attributeName)
null
reader
- source for the attribute textattributeName
- the name of the attributenull
if there is nonepublic String rawAttributeText(XMLStreamReader reader, String attributeName, String defaultValue)
defaultValue
if there is no
value for the attributereader
- source for the attribute textattributeName
- the name of the attributedefaultValue
- value to return if there is no value for the attributedefaultValue
if there is noneprotected void parseExtension(org.jboss.staxmapper.XMLExtendedStreamReader reader, String enclosingTag, org.jboss.dmr.ModelNode operation, org.jboss.as.controller.SimpleAttributeDefinition extensionClassName, org.jboss.as.controller.PropertiesAttributeDefinition extensionProperties) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
XMLStreamException
ParserException
org.jboss.jca.common.api.validator.ValidateException
Copyright © 2016 JBoss by Red Hat. All rights reserved.