public class JDOMetaDataHandler
extends org.datanucleus.metadata.xml.AbstractMetaDataHandler
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.
| Constructor and Description |
|---|
JDOMetaDataHandler(org.datanucleus.metadata.MetaDataManager mgr,
String filename,
EntityResolver resolver)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String uri,
String localName,
String qName)
Handler method called at the end of an element.
|
protected org.datanucleus.metadata.ClassMetaData |
newClassObject(org.datanucleus.metadata.PackageMetaData pmd,
Attributes attrs)
Utility to create a new class component.
|
protected org.datanucleus.metadata.FieldMetaData |
newFieldObject(org.datanucleus.metadata.MetaData md,
Attributes attrs)
Utility to create a new field component.
|
protected org.datanucleus.metadata.InterfaceMetaData |
newInterfaceObject(org.datanucleus.metadata.PackageMetaData pmd,
Attributes attrs)
Utility to create a new interface component.
|
protected org.datanucleus.metadata.PropertyMetaData |
newPropertyObject(org.datanucleus.metadata.MetaData md,
Attributes attrs)
Utility to create a new property component.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs)
Handler method called at the start of an element.
|
characters, error, getAttr, getAttr, getMetaData, getStack, getString, isPersistenceContext, popStack, pushStack, resolveEntity, setValidateendDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic JDOMetaDataHandler(org.datanucleus.metadata.MetaDataManager mgr,
String filename,
EntityResolver resolver)
mgr - the metadata managerfilename - The name of the file to parseresolver - Entity Resolver to use (null if not available)protected org.datanucleus.metadata.ClassMetaData newClassObject(org.datanucleus.metadata.PackageMetaData pmd,
Attributes attrs)
pmd - The parent PackageMetaDataattrs - The attributesprotected org.datanucleus.metadata.InterfaceMetaData newInterfaceObject(org.datanucleus.metadata.PackageMetaData pmd,
Attributes attrs)
pmd - The parent PackageMetaDataattrs - The attributesprotected org.datanucleus.metadata.FieldMetaData newFieldObject(org.datanucleus.metadata.MetaData md,
Attributes attrs)
md - The parent MetaDataattrs - The attributesprotected org.datanucleus.metadata.PropertyMetaData newPropertyObject(org.datanucleus.metadata.MetaData md,
Attributes attrs)
md - The parent MetaDataattrs - The attributespublic void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - URI of the taglocalName - Local nameqName - Element nameattrs - Attributes for this elementSAXException - in parsing errorspublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - URI of the taglocalName - local nameqName - Name of element just endingSAXException - in parsing errorsCopyright © 2020. All rights reserved.