| java.lang.Object org.xml.sax.helpers.DefaultHandler org.jpox.metadata.xml.AbstractMetaDataHandler
All known Subclasses: org.jpox.jdo.metadata.JDOMetaDataHandler, org.jpox.metadata.xml.PersistenceFileMetaDataHandler,
LOCALISER | protected static Localiser LOCALISER(Code) | | Localiser for messages.
|
entityResolver | final protected EntityResolver entityResolver(Code) | | Entity Resolver to use (if required)
|
filename | final protected String filename(Code) | | Filename for the parsed file.
|
metadata | protected MetaData metadata(Code) | | The MetaData for this file (the end result of the parse process.
|
stack | protected Stack stack(Code) | | Stack of meta-data elements. The top of the stack is always the element
being process at the moment. The elements are not the XML Element type
but are things like ClassMetaData, PackageMetaData etc.
|
AbstractMetaDataHandler | public AbstractMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)(Code) | | Constructor.
Parameters: mgr - Manager for the MetaData Parameters: filename - The filename Parameters: resolver - Entity Resolver to use (null if not available) |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | Notification handler for the "body" data inside an element.
Parameters: ch - The characters Parameters: start - The start position in the character array. Parameters: length - The length of the string. throws: SAXException - in parsing errors |
getAttr | protected String getAttr(Attributes attrs, String key, String defaultValue)(Code) | | Accessor for an attribute out of the attributes for an element. Allows
the specification of a default if no value is provided.
Parameters: attrs - The attributes Parameters: key - Key for the attribute to return Parameters: defaultValue - A default to impose if no value. Value for the attribute with the specified key. |
getAttr | protected String getAttr(Attributes attrs, String key)(Code) | | Accessor for an attribute out of the attributes for an element.
Parameters: attrs - The attributes Parameters: key - Key for the attribute to return Value for the attribute with the specified key. |
getMetaData | public MetaData getMetaData()(Code) | | Accessor for the MetaData for this file.
The MetaData. |
getStack | protected MetaData getStack()(Code) | | Accessor for the current MetaData component.
The current MetaData component. |
getString | public String getString()(Code) | | Accessor for the "body" text metadata.
Resets the body text after access.
the string form of this metadata |
popStack | protected MetaData popStack()(Code) | | Method to remove the current MetaData component from the Stack.
Latest MetaData component. |
pushStack | protected void pushStack(MetaData md)(Code) | | Method to add a MetaData component to the Stack.
Parameters: md - The component to add. |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|