public class CFMetaDataParser extends XMLMetaDataParser
_extendedNamespace, _openjpaNamespace
Constructor and Description |
---|
CFMetaDataParser() |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
classForName(String name,
boolean resolve)
Helper method to create the
Class for the given name,
taking into account the package currently being parsed for relative
class names. |
static Class<?> |
classForName(String name,
String pkg,
boolean resolve,
ClassLoader loader)
Load the given class name against the given package and the set
of accepted standard packages.
|
protected String |
currentClassName()
Return the current class being parsed; the returned name will
be fully qualified.
|
protected String |
currentPackage()
Return the current package being parsed.
|
protected void |
endClass(String elem)
End a class.
|
protected void |
endClassElement(String name)
Override this method marking the end of an element within a declared
class.
|
protected void |
endElement(String name)
Override this method marking the end of some element.
|
protected void |
endExtendedClass(String elem) |
protected void |
endPackage(String elem)
End a package.
|
protected void |
endPackageElement(String name)
Override this method marking the end of an element within a declared
package.
|
protected void |
endSystemElement(String name)
Override this method marking the end of an element outside of any
package or class.
|
protected String |
getClassAttributeName()
The attribute of the class element that holds the name, or null to
use the element text.
|
protected int |
getClassElementDepth()
The depth of the class element.
|
protected String |
getPackageAttributeName()
The attribute of the package element that holds the name, or null to
use the element text.
|
protected int |
getPackageElementDepth()
The depth of the package element.
|
protected boolean |
isClassElementName(String name)
The name of the class element.
|
protected boolean |
isPackageElementName(String name)
The name of the package element.
|
protected void |
reset()
Override this method to clear any state and ready the parser for
a new document.
|
protected boolean |
startClass(String elem,
Attributes attrs)
Start a class.
|
protected boolean |
startClassElement(String name,
Attributes attrs)
Override this method marking the start of an element within a declared
class.
|
protected boolean |
startElement(String name,
Attributes attrs)
Override this method marking the start of some element.
|
protected boolean |
startExtendedClass(String elem,
Attributes attrs) |
protected boolean |
startPackage(String elem,
Attributes attrs)
Start a package.
|
protected boolean |
startPackageElement(String name,
Attributes attrs)
Override this method marking the start of an element within a declared
package.
|
protected boolean |
startSystemElement(String name,
Attributes attrs)
Override this method marking the start of an element outside of any
package or class.
|
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, getSchemaSource, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isParsing, isValidating, parse, parse, 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
protected boolean isPackageElementName(String name)
protected String getPackageAttributeName()
protected int getPackageElementDepth()
protected boolean isClassElementName(String name)
protected String getClassAttributeName()
protected int getClassElementDepth()
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
protected boolean startPackage(String elem, Attributes attrs) throws SAXException
SAXException
protected void endPackage(String elem)
protected boolean startClass(String elem, Attributes attrs) throws SAXException
SAXException
protected void endClass(String elem) throws SAXException
SAXException
protected boolean startExtendedClass(String elem, Attributes attrs) throws SAXException
SAXException
protected void endExtendedClass(String elem) throws SAXException
SAXException
protected boolean startSystemElement(String name, Attributes attrs) throws SAXException
SAXException
protected void endSystemElement(String name) throws SAXException
SAXException
protected boolean startPackageElement(String name, Attributes attrs) throws SAXException
SAXException
protected void endPackageElement(String name) throws SAXException
SAXException
protected boolean startClassElement(String name, Attributes attrs) throws SAXException
SAXException
protected void endClassElement(String name) throws SAXException
SAXException
protected void reset()
super.reset()
to clear superclass state.reset
in class XMLMetaDataParser
protected String currentClassName()
protected String currentPackage()
protected Class<?> classForName(String name, boolean resolve) throws SAXException
Class
for the given name,
taking into account the package currently being parsed for relative
class names.SAXException
public static Class<?> classForName(String name, String pkg, boolean resolve, ClassLoader loader)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.