org.jaffa.persistence.engines.jdbcengine.configservice
Class MappingParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.jaffa.persistence.engines.jdbcengine.configservice.MappingParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class MappingParser
extends DefaultHandler

This is the handler for the mapping files. It parses the file and creates an appropriate ClassMetaData object.


Constructor Summary
MappingParser()
           
 
Method Summary
 ClassMetaData getMetaData()
          Returns a ClassMetaData object corresponding to a mapping file.
 void startElement(String uri, String sName, String qName, Attributes atts)
          Receive notification of the start of an element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingParser

public MappingParser()
Method Detail

startElement

public void startElement(String uri,
                         String sName,
                         String qName,
                         Attributes atts)
Receive notification of the start of an element.

Parameters:
uri - The uri.
sName - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName - The qualified name (with prefix), or the empty string if qualified names are not available.
atts - The specified or defaulted attributes

getMetaData

public ClassMetaData getMetaData()
Returns a ClassMetaData object corresponding to a mapping file.

Returns:
a ClassMetaData object corresponding to a mapping file.


Copyright © 2002-2004 JAFFA Project.