Class PersistenceXmlMetaDataHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class PersistenceXmlMetaDataHandler extends AbstractXmlMetaDataHandler
XML parser handler for "persistence.xml" files to convert them into a PersistenceFileMetaData. Implements DefaultHandler and handles the extracting of MetaData from the XML elements/attributes. This class simply constructs the MetaData representation mirroring what is in the XML MetaData file.

Operates the parse process using a Stack. XML MetaData components are added to the stack as they are encountered and created. They are then popped off the stack when the end element is encountered.

  • Field Details

    • rootURI

      URI rootURI
  • Constructor Details

    • PersistenceXmlMetaDataHandler

      public PersistenceXmlMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)
      Constructor. Protected to prevent instantiation.
      Parameters:
      mgr - the metadata manager (not used)
      filename - The name of the file to parse
      resolver - Entity Resolver to use (null if not available)
  • Method Details