public static class PersistenceProductDerivation.ConfigurationParser extends XMLMetaDataParser
_extendedNamespace, _openjpaNamespace
Constructor and Description |
---|
ConfigurationParser(Map map) |
Modifier and Type | Method and Description |
---|---|
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.
|
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, getOverrideContextClassloader, getParseComments, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isParsing, isValidating, parse, parse, parse, parse, parsed, parseNewResource, setCaching, setClassLoader, setDocumentLocator, setLexicalHandler, setLocation, setLog, setOverrideContextClassloader, setParseComments, setParseText, setParsing, setSourceIsSystemId, setSuffix, setValidating, startCDATA, startDTD, startElement, startEntity
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ConfigurationParser(Map map)
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
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.