public abstract class AbstractParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static CommonBundle |
bundle
The bundle
|
protected static CommonLogger |
log
The logger
|
| Constructor and Description |
|---|
AbstractParser() |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
attributeAsBoolean(XMLStreamReader reader,
String attributeName,
Boolean defaultValue)
convert an xml attribute in boolean value.
|
protected Integer |
attributeAsInt(XMLStreamReader reader,
String attributeName)
convert an xml element in String value
|
protected String |
attributeAsString(XMLStreamReader reader,
String attributeName)
convert an xml element in String value
|
protected Boolean |
elementAsBoolean(XMLStreamReader reader)
convert an xml element in boolean value.
|
protected FlushStrategy |
elementAsFlushStrategy(XMLStreamReader reader)
convert an xml element in FlushStrategy value
|
protected Integer |
elementAsInteger(XMLStreamReader reader)
convert an xml element in Integer value
|
protected Long |
elementAsLong(XMLStreamReader reader)
convert an xml element in Long value
|
protected String |
elementAsString(XMLStreamReader reader)
convert an xml element in String value
|
boolean |
isSystemPropertiesResolved() |
protected Capacity |
parseCapacity(XMLStreamReader reader)
Parse capacity tag
|
protected void |
parseConfigProperty(Map<String,String> configProperties,
XMLStreamReader reader)
Adds config property to the map
|
protected Credential |
parseCredential(XMLStreamReader reader)
parse credential tag
|
protected Extension |
parseExtension(XMLStreamReader reader,
String enclosingTag)
parse the Extension tag
|
protected Pool |
parsePool(XMLStreamReader reader)
parse a
Pool object |
protected Recovery |
parseRecovery(XMLStreamReader reader)
Parse recovery tag
|
protected Security |
parseSecuritySettings(XMLStreamReader reader)
parse a
Security element |
protected TimeOut |
parseTimeOut(XMLStreamReader reader,
Boolean isXa)
Parse timeout
|
protected Validation |
parseValidation(XMLStreamReader reader)
Parse validation
|
protected XaPool |
parseXaPool(XMLStreamReader reader)
parse a
XaPool object |
void |
setSystemPropertiesResolved(boolean v) |
protected static CommonLogger log
protected static CommonBundle bundle
public boolean isSystemPropertiesResolved()
public void setSystemPropertiesResolved(boolean v)
protected Boolean elementAsBoolean(XMLStreamReader reader) throws XMLStreamException, ParserException
reader - the StAX readerXMLStreamException - StAX exceptionParserException - in case of non valid boolean for given element valueprotected Boolean attributeAsBoolean(XMLStreamReader reader, String attributeName, Boolean defaultValue) throws XMLStreamException, ParserException
reader - the StAX readerattributeName - the name of the attributedefaultValue - defaultValueXMLStreamException - StAX exceptionParserException - in case of not valid boolena for given attributeprotected String elementAsString(XMLStreamReader reader) throws XMLStreamException
reader - the StAX readerXMLStreamException - StAX exceptionprotected String attributeAsString(XMLStreamReader reader, String attributeName) throws XMLStreamException
reader - the StAX readerattributeName - the name of the attributeXMLStreamException - StAX exceptionprotected Integer attributeAsInt(XMLStreamReader reader, String attributeName) throws XMLStreamException
reader - the StAX readerattributeName - the name of the attributeXMLStreamException - StAX exceptionprotected Integer elementAsInteger(XMLStreamReader reader) throws XMLStreamException, ParserException
reader - the StAX readerXMLStreamException - StAX exceptionParserException - in case it isn't a numberprotected Long elementAsLong(XMLStreamReader reader) throws XMLStreamException, ParserException
reader - the StAX readerXMLStreamException - StAX exceptionParserException - in case it isn't a numberprotected FlushStrategy elementAsFlushStrategy(XMLStreamReader reader) throws XMLStreamException, ParserException
reader - the StAX readerXMLStreamException - StAX exceptionParserException - in case it isn't a numberprotected Pool parsePool(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
Pool objectreader - readerPool objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionValidateException - ValidateExceptionprotected XaPool parseXaPool(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
XaPool objectreader - readerXaPool objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionValidateException - ValidateExceptionprotected Security parseSecuritySettings(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
Security elementreader - readerSecurity objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionValidateException - ValidateExceptionprotected Credential parseCredential(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errorValidateException - in case of errorprotected Recovery parseRecovery(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errorValidateException - in case of errorprotected Extension parseExtension(XMLStreamReader reader, String enclosingTag) throws XMLStreamException, ParserException, ValidateException
reader - readerenclosingTag - enclosingTagXMLStreamException - in case of errorParserException - in case of errorValidateException - in case of errorprotected Capacity parseCapacity(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errorValidateException - in case of errorprotected Validation parseValidation(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException
reader - The readerXMLStreamException - XMLStreamExceptionParserException - ParserExceptionValidateException - ValidateExceptionprotected TimeOut parseTimeOut(XMLStreamReader reader, Boolean isXa) throws XMLStreamException, ParserException, ValidateException
reader - The readerisXa - XA flagXMLStreamException - XMLStreamExceptionParserException - ParserExceptionValidateException - ValidateExceptionprotected void parseConfigProperty(Map<String,String> configProperties, XMLStreamReader reader) throws XMLStreamException, ParserException
configProperties - mapreader - XMLStream readerXMLStreamException - in case of errorParserException - in case of errorCopyright © 2021 JBoss by Red Hat. All rights reserved.