
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 org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.Capacity |
parseCapacity(XMLStreamReader reader)
Parse capacity tag
|
protected void |
parseConfigProperty(Map<String,String> configProperties,
XMLStreamReader reader)
Adds config property to the map
|
protected org.jboss.jca.common.api.metadata.common.Credential |
parseCredential(XMLStreamReader reader)
parse credential tag
|
protected org.jboss.jca.common.api.metadata.common.Extension |
parseExtension(XMLStreamReader reader,
String enclosingTag)
parse the Extension tag
|
protected org.jboss.jca.common.api.metadata.common.Pool |
parsePool(XMLStreamReader reader)
parse a
Pool object |
protected org.jboss.jca.common.api.metadata.common.Recovery |
parseRecovery(XMLStreamReader reader)
Parse recovery tag
|
protected org.jboss.jca.common.api.metadata.common.Security |
parseSecuritySettings(XMLStreamReader reader)
parse a
Security element |
protected org.jboss.jca.common.api.metadata.common.TimeOut |
parseTimeOut(XMLStreamReader reader,
Boolean isXa)
Parse timeout
|
protected org.jboss.jca.common.api.metadata.common.Validation |
parseValidation(XMLStreamReader reader)
Parse validation
|
protected org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.FlushStrategy elementAsFlushStrategy(XMLStreamReader reader) throws XMLStreamException, ParserException
reader - the StAX readerXMLStreamException - StAX exceptionParserException - in case it isn't a numberprotected org.jboss.jca.common.api.metadata.common.Pool parsePool(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
Pool objectreader - readerPool objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.XaPool parseXaPool(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
XaPool objectreader - readerXaPool objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.Security parseSecuritySettings(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
Security elementreader - readerSecurity objectXMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.Credential parseCredential(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errororg.jboss.jca.common.api.validator.ValidateException - in case of errorprotected org.jboss.jca.common.api.metadata.common.Recovery parseRecovery(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errororg.jboss.jca.common.api.validator.ValidateException - in case of errorprotected org.jboss.jca.common.api.metadata.common.Extension parseExtension(XMLStreamReader reader, String enclosingTag) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - readerenclosingTag - enclosingTagXMLStreamException - in case of errorParserException - in case of errororg.jboss.jca.common.api.validator.ValidateException - in case of errorprotected org.jboss.jca.common.api.metadata.common.Capacity parseCapacity(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - readerXMLStreamException - in case of errorParserException - in case of errororg.jboss.jca.common.api.validator.ValidateException - in case of errorprotected org.jboss.jca.common.api.metadata.common.Validation parseValidation(XMLStreamReader reader) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - The readerXMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.TimeOut parseTimeOut(XMLStreamReader reader, Boolean isXa) throws XMLStreamException, ParserException, org.jboss.jca.common.api.validator.ValidateException
reader - The readerisXa - XA flagXMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected void parseConfigProperty(Map<String,String> configProperties, XMLStreamReader reader) throws XMLStreamException, ParserException
configProperties - mapreader - XMLStream readerXMLStreamException - in case of errorParserException - in case of errorCopyright © 2014 IronJacamar (http://www.ironjacamar.org)