|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.openjpa.lib.meta.XMLMetaDataParser org.apache.openjpa.persistence.PersistenceProductDerivation.ConfigurationParser
public static class PersistenceProductDerivation.ConfigurationParser
SAX handler capable of parsing an JPA persistence.xml file. Package-protected for testing.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.lib.meta.XMLMetaDataParser |
---|
_extendedNamespace, _openjpaNamespace |
Constructor Summary | |
---|---|
PersistenceProductDerivation.ConfigurationParser(Map map)
|
Method Summary | |
---|---|
protected void |
endElement(String name)
Override this method marking the end of some element. |
protected Object |
getSchemaSource()
Implement to return the XML schema source for the document. |
void |
parse(File file)
Parse the given file, which may be a directory, in which case it will be scanned recursively for metadata files. |
void |
parse(URL url)
Parse the given resource. |
protected void |
reset()
Override this method to clear any state and ready the parser for a new document. |
protected boolean |
startElement(String name,
Attributes attrs)
Override this method marking the start of some element. |
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 |
Constructor Detail |
---|
public PersistenceProductDerivation.ConfigurationParser(Map map)
Method Detail |
---|
public void parse(URL url) throws IOException
MetaDataParser
parse
in interface MetaDataParser
parse
in class XMLMetaDataParser
IOException
public void parse(File file) throws IOException
MetaDataParser
parse
in interface MetaDataParser
parse
in class XMLMetaDataParser
IOException
protected Object getSchemaSource()
XMLMetaDataParser
String
pointing to schema URI.InputStream
containing schema contents.InputSource
containing schema contents.File
containing schema contents.
getSchemaSource
in class XMLMetaDataParser
protected void reset()
XMLMetaDataParser
super.reset()
to clear superclass state.
reset
in class XMLMetaDataParser
protected boolean startElement(String name, Attributes attrs) throws SAXException
XMLMetaDataParser
startElement
in class XMLMetaDataParser
SAXException
protected void endElement(String name) throws SAXException
XMLMetaDataParser
endElement
in class XMLMetaDataParser
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |