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
nullreader - source for the element textnull if there is none or it is an empty stringXMLStreamExceptionpublic String rawAttributeText(XMLStreamReader reader, String attributeName)
nullreader - 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
XMLStreamExceptionParserExceptionorg.jboss.jca.common.api.validator.ValidateExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.