| org.jpox.metadata.xml.AbstractMetaDataHandler org.jpox.metadata.xml.PersistenceFileMetaDataHandler
PersistenceFileMetaDataHandler | public class PersistenceFileMetaDataHandler extends AbstractMetaDataHandler (Code) | | 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 MetaData file.
Operates the parse process using a Stack. 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.
since: 1.1 version: $Revision: 1.2 $ |
PersistenceFileMetaDataHandler | public PersistenceFileMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)(Code) | | Constructor. Protected to prevent instantiation.
Parameters: mgr - the metadata manager Parameters: filename - The name of the file to parse Parameters: resolver - Entity Resolver to use (null if not available) |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Handler method called at the end of an element.
Parameters: uri - URI of the tag Parameters: localName - local name Parameters: qName - Name of element just ending throws: SAXException - in parsing errors |
startElement | public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException(Code) | | Handler method called at the start of an element.
Parameters: uri - URI of the tag Parameters: localName - Local name Parameters: qName - Element name Parameters: attrs - Attributes for this element throws: SAXException - in parsing errors |
|
|