public class PersistenceFileMetaDataHandler extends 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.
charactersBuffer, entityResolver, filename, metadata, mmgr, stack, validate
Constructor and Description |
---|
PersistenceFileMetaDataHandler(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.
|
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, setValidate
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public PersistenceFileMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)
mgr
- the metadata manager (not used)filename
- The name of the file to parseresolver
- Entity Resolver to use (null if not available)public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
uri
- 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 ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- URI of the taglocalName
- local nameqName
- Name of element just endingSAXException
- in parsing errorsCopyright © 2019. All rights reserved.