
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 org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.Credential |
parseCredential(javax.xml.stream.XMLStreamReader reader)
parse credential tag
|
protected org.jboss.jca.common.api.metadata.common.Extension |
parseExtension(javax.xml.stream.XMLStreamReader reader,
java.lang.String enclosingTag)
parse the Extension tag
|
protected org.jboss.jca.common.api.metadata.common.CommonPool |
parsePool(javax.xml.stream.XMLStreamReader reader)
parse a
CommonPool object |
protected org.jboss.jca.common.api.metadata.common.Recovery |
parseRecovery(javax.xml.stream.XMLStreamReader reader)
Parse recovery tag
|
protected org.jboss.jca.common.api.metadata.common.CommonSecurity |
parseSecuritySettings(javax.xml.stream.XMLStreamReader reader)
parse a
CommonSecurity element |
protected org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.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 org.jboss.jca.common.api.metadata.common.CommonPool parsePool(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
CommonPool objectreader - readerCommonPool objectjavax.xml.stream.XMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.CommonSecurity parseSecuritySettings(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
CommonSecurity elementreader - readerCommonSecurity objectjavax.xml.stream.XMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.CommonXaPool parseXaPool(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
CommonXaPool objectreader - readerCommonXaPool objectjavax.xml.stream.XMLStreamException - XMLStreamExceptionParserException - ParserExceptionorg.jboss.jca.common.api.validator.ValidateException - ValidateExceptionprotected org.jboss.jca.common.api.metadata.common.Credential parseCredential(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
reader - readerjavax.xml.stream.XMLStreamException - 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(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
reader - readerjavax.xml.stream.XMLStreamException - 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(javax.xml.stream.XMLStreamReader reader,
java.lang.String enclosingTag)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
reader - readerenclosingTag - enclosingTagjavax.xml.stream.XMLStreamException - 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(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException,
ParserException,
org.jboss.jca.common.api.validator.ValidateException
reader - readerjavax.xml.stream.XMLStreamException - in case of errorParserException - in case of errororg.jboss.jca.common.api.validator.ValidateException - 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)