org.jboss.jca.common.metadata.ds.v10
Class DsParser

java.lang.Object
  extended by org.jboss.jca.common.metadata.AbstractParser
      extended by org.jboss.jca.common.metadata.ds.v10.DsParser
All Implemented Interfaces:
MetadataParser<org.jboss.jca.common.api.metadata.ds.DataSources>
Direct Known Subclasses:
DsParser

public class DsParser
extends AbstractParser
implements MetadataParser<org.jboss.jca.common.api.metadata.ds.DataSources>

A DsParser.

Author:
Stefano Maestri

Nested Class Summary
static class DsParser.Tag
          A Tag.
 
Field Summary
protected static CommonBundle bundle
          The bundle
 
Constructor Summary
DsParser()
           
 
Method Summary
 org.jboss.jca.common.api.metadata.ds.DataSources parse(InputStream xmlInputStream)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
 org.jboss.jca.common.api.metadata.ds.DataSources parse(XMLStreamReader reader)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
protected  org.jboss.jca.common.api.metadata.ds.DataSource parseDataSource(XMLStreamReader reader)
          Parse datasource
protected  org.jboss.jca.common.api.metadata.ds.DataSources parseDataSources(XMLStreamReader reader)
          Parse datasource
protected  org.jboss.jca.common.api.metadata.ds.Driver parseDriver(XMLStreamReader reader)
          Parse driver
protected  org.jboss.jca.common.api.metadata.ds.DsSecurity parseDsSecurity(XMLStreamReader reader)
          Parse security
protected  org.jboss.jca.common.api.metadata.ds.Statement parseStatementSettings(XMLStreamReader reader)
          Parse statement
protected  org.jboss.jca.common.api.metadata.ds.TimeOut parseTimeOutSettings(XMLStreamReader reader)
          Parse timeout
protected  org.jboss.jca.common.api.metadata.ds.Validation parseValidationSetting(XMLStreamReader reader)
          Parse validation
protected  org.jboss.jca.common.api.metadata.ds.XaDataSource parseXADataSource(XMLStreamReader reader)
          Parse XA datasource
 
Methods inherited from class org.jboss.jca.common.metadata.AbstractParser
attributeAsBoolean, attributeAsInt, attributeAsString, elementAsBoolean, elementAsFlushStrategy, elementAsInteger, elementAsLong, elementAsString, parseCredential, parseExtension, parsePool, parseRecovery, parseSecuritySettings, parseXaPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected static CommonBundle bundle
The bundle

Constructor Detail

DsParser

public DsParser()
Method Detail

parse

public org.jboss.jca.common.api.metadata.ds.DataSources parse(InputStream xmlInputStream)
                                                       throws Exception
Description copied from interface: MetadataParser
Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream

Specified by:
parse in interface MetadataParser<org.jboss.jca.common.api.metadata.ds.DataSources>
Parameters:
xmlInputStream - an InputStrema opened on the xml file to parse
Returns:
The metadata
Throws:
Exception - Thrown if an error occurs

parse

public org.jboss.jca.common.api.metadata.ds.DataSources parse(XMLStreamReader reader)
                                                       throws Exception
Description copied from interface: MetadataParser
Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream

Specified by:
parse in interface MetadataParser<org.jboss.jca.common.api.metadata.ds.DataSources>
Parameters:
reader - an XMLStreamReader opened on the xml file to parse
Returns:
The metadata
Throws:
Exception - Thrown if an error occurs

parseDataSources

protected org.jboss.jca.common.api.metadata.ds.DataSources parseDataSources(XMLStreamReader reader)
                                                                     throws XMLStreamException,
                                                                            ParserException,
                                                                            org.jboss.jca.common.api.validator.ValidateException
Parse datasource

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseDriver

protected org.jboss.jca.common.api.metadata.ds.Driver parseDriver(XMLStreamReader reader)
                                                           throws XMLStreamException,
                                                                  ParserException,
                                                                  org.jboss.jca.common.api.validator.ValidateException
Parse driver

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseXADataSource

protected org.jboss.jca.common.api.metadata.ds.XaDataSource parseXADataSource(XMLStreamReader reader)
                                                                       throws XMLStreamException,
                                                                              ParserException,
                                                                              org.jboss.jca.common.api.validator.ValidateException
Parse XA datasource

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseDsSecurity

protected org.jboss.jca.common.api.metadata.ds.DsSecurity parseDsSecurity(XMLStreamReader reader)
                                                                   throws XMLStreamException,
                                                                          ParserException,
                                                                          org.jboss.jca.common.api.validator.ValidateException
Parse security

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseDataSource

protected org.jboss.jca.common.api.metadata.ds.DataSource parseDataSource(XMLStreamReader reader)
                                                                   throws XMLStreamException,
                                                                          ParserException,
                                                                          org.jboss.jca.common.api.validator.ValidateException
Parse datasource

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseValidationSetting

protected org.jboss.jca.common.api.metadata.ds.Validation parseValidationSetting(XMLStreamReader reader)
                                                                          throws XMLStreamException,
                                                                                 ParserException,
                                                                                 org.jboss.jca.common.api.validator.ValidateException
Parse validation

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseTimeOutSettings

protected org.jboss.jca.common.api.metadata.ds.TimeOut parseTimeOutSettings(XMLStreamReader reader)
                                                                     throws XMLStreamException,
                                                                            ParserException,
                                                                            org.jboss.jca.common.api.validator.ValidateException
Parse timeout

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException

parseStatementSettings

protected org.jboss.jca.common.api.metadata.ds.Statement parseStatementSettings(XMLStreamReader reader)
                                                                         throws XMLStreamException,
                                                                                ParserException,
                                                                                org.jboss.jca.common.api.validator.ValidateException
Parse statement

Parameters:
reader - The reader
Returns:
The result
Throws:
XMLStreamException - XMLStreamException
ParserException - ParserException
org.jboss.jca.common.api.validator.ValidateException - ValidateException


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)