public abstract class AbstractParser
extends java.lang.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 java.lang.Boolean |
attributeAsBoolean(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName,
java.lang.Boolean defaultValue)
convert an xml attribute in boolean value.
|
protected java.lang.Integer |
attributeAsInt(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName)
convert an xml element in String value
|
protected java.lang.String |
attributeAsString(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName)
convert an xml element in String value
|
protected java.lang.Boolean |
elementAsBoolean(javax.xml.stream.XMLStreamReader reader)
convert an xml element in boolean value.
|
protected FlushStrategy |
elementAsFlushStrategy(javax.xml.stream.XMLStreamReader reader)
convert an xml element in FlushStrategy value
|
protected java.lang.Integer |
elementAsInteger(javax.xml.stream.XMLStreamReader reader)
convert an xml element in Integer value
|
protected java.lang.Long |
elementAsLong(javax.xml.stream.XMLStreamReader reader)
convert an xml element in Long value
|
protected java.lang.String |
elementAsString(javax.xml.stream.XMLStreamReader reader)
convert an xml element in String value
|
boolean |
isSystemPropertiesResolved() |
protected Capacity |
parseCapacity(javax.xml.stream.XMLStreamReader reader)
Parse capacity tag
|
protected void |
parseConfigProperty(java.util.Map<java.lang.String,java.lang.String> configProperties,
javax.xml.stream.XMLStreamReader reader)
Adds config property to the map
|
protected Credential |
parseCredential(javax.xml.stream.XMLStreamReader reader)
parse credential tag
|
protected Extension |
parseExtension(javax.xml.stream.XMLStreamReader reader,
java.lang.String enclosingTag)
parse the Extension tag
|
protected Pool |
parsePool(javax.xml.stream.XMLStreamReader reader)
parse a
Pool object |
protected Recovery |
parseRecovery(javax.xml.stream.XMLStreamReader reader)
Parse recovery tag
|
protected Security |
parseSecuritySettings(javax.xml.stream.XMLStreamReader reader)
parse a
Security element |
protected TimeOut |
parseTimeOut(javax.xml.stream.XMLStreamReader reader,
java.lang.Boolean isXa)
Parse timeout
|
protected Validation |
parseValidation(javax.xml.stream.XMLStreamReader reader)
Parse validation
|
protected XaPool |
parseXaPool(javax.xml.stream.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 java.lang.Boolean elementAsBoolean(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException
reader
- the StAX readerjavax.xml.stream.XMLStreamException
- StAX exceptionParserException
- in case of non valid boolean for given element valueprotected java.lang.Boolean attributeAsBoolean(javax.xml.stream.XMLStreamReader reader, java.lang.String attributeName, java.lang.Boolean defaultValue) throws javax.xml.stream.XMLStreamException, ParserException
reader
- the StAX readerattributeName
- the name of the attributedefaultValue
- defaultValuejavax.xml.stream.XMLStreamException
- StAX exceptionParserException
- in case of not valid boolena for given attributeprotected java.lang.String elementAsString(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
reader
- the StAX readerjavax.xml.stream.XMLStreamException
- StAX exceptionprotected java.lang.String attributeAsString(javax.xml.stream.XMLStreamReader reader, java.lang.String attributeName) throws javax.xml.stream.XMLStreamException
reader
- the StAX readerattributeName
- the name of the attributejavax.xml.stream.XMLStreamException
- StAX exceptionprotected java.lang.Integer attributeAsInt(javax.xml.stream.XMLStreamReader reader, java.lang.String attributeName) throws javax.xml.stream.XMLStreamException
reader
- the StAX readerattributeName
- the name of the attributejavax.xml.stream.XMLStreamException
- StAX exceptionprotected java.lang.Integer elementAsInteger(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException
reader
- the StAX readerjavax.xml.stream.XMLStreamException
- StAX exceptionParserException
- in case it isn't a numberprotected java.lang.Long elementAsLong(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException
reader
- the StAX readerjavax.xml.stream.XMLStreamException
- StAX exceptionParserException
- in case it isn't a numberprotected FlushStrategy elementAsFlushStrategy(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException
reader
- the StAX readerjavax.xml.stream.XMLStreamException
- StAX exceptionParserException
- in case it isn't a numberprotected Pool parsePool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
Pool
objectreader
- readerPool
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected XaPool parseXaPool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
XaPool
objectreader
- readerXaPool
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Security parseSecuritySettings(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
Security
elementreader
- readerSecurity
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected Credential parseCredential(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- readerjavax.xml.stream.XMLStreamException
- in case of errorParserException
- in case of errorValidateException
- in case of errorprotected Recovery parseRecovery(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- readerjavax.xml.stream.XMLStreamException
- in case of errorParserException
- in case of errorValidateException
- in case of errorprotected Extension parseExtension(javax.xml.stream.XMLStreamReader reader, java.lang.String enclosingTag) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- readerenclosingTag
- enclosingTagjavax.xml.stream.XMLStreamException
- in case of errorParserException
- in case of errorValidateException
- in case of errorprotected Capacity parseCapacity(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- readerjavax.xml.stream.XMLStreamException
- in case of errorParserException
- in case of errorValidateException
- in case of errorprotected Validation parseValidation(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected TimeOut parseTimeOut(javax.xml.stream.XMLStreamReader reader, java.lang.Boolean isXa) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
reader
- The readerisXa
- XA flagjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected void parseConfigProperty(java.util.Map<java.lang.String,java.lang.String> configProperties, javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException
configProperties
- mapreader
- XMLStream readerjavax.xml.stream.XMLStreamException
- in case of errorParserException
- in case of errorCopyright © 2014 IronJacamar (http://www.ironjacamar.org)