public abstract class AbstractParser
extends java.lang.Object
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 CommonPool |
parsePool(javax.xml.stream.XMLStreamReader reader)
parse a
CommonPool object |
protected Recovery |
parseRecovery(javax.xml.stream.XMLStreamReader reader)
Parse recovery tag
|
protected CommonSecurity |
parseSecuritySettings(javax.xml.stream.XMLStreamReader reader)
parse a
CommonSecurity element |
protected CommonXaPool |
parseXaPool(javax.xml.stream.XMLStreamReader reader)
parse a
CommonXaPool object |
void |
setSystemPropertiesResolved(boolean v) |
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 CommonPool parsePool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
CommonPool
objectreader
- readerCommonPool
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected CommonSecurity parseSecuritySettings(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
CommonSecurity
elementreader
- readerCommonSecurity
objectjavax.xml.stream.XMLStreamException
- XMLStreamExceptionParserException
- ParserExceptionValidateException
- ValidateExceptionprotected CommonXaPool parseXaPool(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException, ParserException, ValidateException
CommonXaPool
objectreader
- readerCommonXaPool
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 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 © 2013 IronJacamar (http://www.ironjacamar.org)