org.apache.openjpa.persistence
Class PersistenceProductDerivation.ConfigurationParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.openjpa.lib.meta.XMLMetaDataParser
org.apache.openjpa.persistence.PersistenceProductDerivation.ConfigurationParser
- All Implemented Interfaces:
- MetaDataParser, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler
- Enclosing class:
- PersistenceProductDerivation
public static class PersistenceProductDerivation.ConfigurationParser
- extends XMLMetaDataParser
SAX handler capable of parsing an JPA persistence.xml file.
Package-protected for testing.
| Methods inherited from class org.apache.openjpa.lib.meta.XMLMetaDataParser |
addComments, addResult, characters, clear, clearDeferredMetaData, comment, currentClassLoader, currentComments, currentDepth, currentLocation, currentText, endCDATA, endDTD, endElement, endEntity, error, fatalError, finish, getClassLoader, getDocType, getException, getException, getException, getLexicalHandler, getLocation, getLog, getParseComments, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isParsing, isValidating, parse, parse, parse, parse, parsed, parseNewResource, setCaching, setClassLoader, setDocumentLocator, setLexicalHandler, setLocation, setLog, setParseComments, setParseText, setParsing, setSourceIsSystemId, setSuffix, setValidating, startCDATA, startDTD, startElement, startEntity |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceProductDerivation.ConfigurationParser
public PersistenceProductDerivation.ConfigurationParser(Map map)
parse
public void parse(URL url)
throws IOException
- Specified by:
parse in interface MetaDataParser- Overrides:
parse in class XMLMetaDataParser
- Throws:
IOException
parse
public void parse(File file)
throws IOException
- Specified by:
parse in interface MetaDataParser- Overrides:
parse in class XMLMetaDataParser
- Throws:
IOException
getSchemaSource
protected Object getSchemaSource()
- Overrides:
getSchemaSource in class XMLMetaDataParser
reset
protected void reset()
- Overrides:
reset in class XMLMetaDataParser
startElement
protected boolean startElement(String name,
Attributes attrs)
throws SAXException
- Specified by:
startElement in class XMLMetaDataParser
- Throws:
SAXException
endElement
protected void endElement(String name)
throws SAXException
- Specified by:
endElement in class XMLMetaDataParser
- Throws:
SAXException
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.