org.jboss.jca.common.metadata.ra
Class RaParser

java.lang.Object
  extended by org.jboss.jca.common.metadata.AbstractParser
      extended by org.jboss.jca.common.metadata.ra.RaParser
All Implemented Interfaces:
MetadataParser<org.jboss.jca.common.api.metadata.ra.Connector>

public class RaParser
extends AbstractParser
implements MetadataParser<org.jboss.jca.common.api.metadata.ra.Connector>

A RaParser.

Author:
Stefano Maestri

Nested Class Summary
static class RaParser.Tag
          A Tag.
 
Constructor Summary
RaParser()
           
 
Method Summary
 org.jboss.jca.common.api.metadata.ra.Connector parse(InputStream xmlInputStream)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
 org.jboss.jca.common.api.metadata.ra.Connector parse(XMLStreamReader reader)
          Parse the xml file and return the JCAMetaData for which the concrete parser is designed.
 
Methods inherited from class org.jboss.jca.common.metadata.AbstractParser
attributeAsBoolean, 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
 

Constructor Detail

RaParser

public RaParser()
Method Detail

parse

public org.jboss.jca.common.api.metadata.ra.Connector 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.ra.Connector>
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.ra.Connector 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.ra.Connector>
Parameters:
reader - an XMLStreamReader opened on the xml file to parse
Returns:
The metadata
Throws:
Exception - Thrown if an error occurs


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