| org.jpox.metadata.xml.AbstractMetaDataHandler org.jpox.jdo.metadata.JDOMetaDataHandler
JDOMetaDataHandler | public class JDOMetaDataHandler extends AbstractMetaDataHandler (Code) | | Parser handler for JDO MetaData.
Implements DefaultHandler and handles the extracting of MetaData for JDO
from the XML elements/attributes. This class simply constructs the MetaData
representation mirroring what is in the MetaData file. It has no knowledge
of the class(es) that it represents, simply the information in the MetaData
file. The knowledge of the classes is imposed on the representation at a
later stage where necessary.
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.
since: 1.1 version: $Revision: 1.2 $ |
JDOMetaDataHandler | public JDOMetaDataHandler(MetaDataManager mgr, String filename, EntityResolver resolver)(Code) | | Constructor. Protected to prevent instantiation.
Parameters: mgr - the metadata manager Parameters: filename - The name of the file to parse Parameters: resolver - Entity Resolver to use (null if not available) |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Handler method called at the end of an element.
Parameters: uri - URI of the tag Parameters: localName - local name Parameters: qName - Name of element just ending throws: SAXException - in parsing errors |
newClassObject | protected ClassMetaData newClassObject(PackageMetaData pmd, Attributes attrs)(Code) | | Utility to create a new class component.
Parameters: pmd - The parent PackageMetaData Parameters: attrs - The attributes The ClassMetaData |
newFieldObject | protected FieldMetaData newFieldObject(MetaData md, Attributes attrs)(Code) | | Utility to create a new field component.
Parameters: md - The parent MetaData Parameters: attrs - The attributes The FieldMetaData |
newPropertyObject | protected PropertyMetaData newPropertyObject(MetaData md, Attributes attrs)(Code) | | Utility to create a new property component.
Parameters: md - The parent MetaData Parameters: attrs - The attributes The PropertyMetaData |
startElement | public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException(Code) | | Handler method called at the start of an element.
Parameters: uri - URI of the tag Parameters: localName - Local name Parameters: qName - Element name Parameters: attrs - Attributes for this element throws: SAXException - in parsing errors |
|
|