kodo.meta
Class JDOMetaDataParser
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--com.solarmetric.meta.XMLMetaDataParser
|
+--com.solarmetric.meta.CFMetaDataParser
|
+--kodo.meta.JDOMetaDataParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, com.solarmetric.meta.MetaDataParser
- public class JDOMetaDataParser
- extends com.solarmetric.meta.CFMetaDataParser
Custom SAX parser used by the system to quickly parse JDO metadata
files.
Methods inherited from class com.solarmetric.meta.CFMetaDataParser |
classForName, classForName, endElement, getDeclaredClass, getDeclaredPackage, startElement |
Methods inherited from class com.solarmetric.meta.XMLMetaDataParser |
addResult, characters, clear, currentClassLoader, endElement, error, fatalError, findMetaData, getClassLoader, getCurrentLocation, getLocation, getLog, getParseText, getResults, getSourceFile, getSourceIsSystemId, getSourceName, getText, isValidating, parse, parse, parse, parse, parseNew, setClassLoader, setDocumentLocator, setLocation, setLog, setParseText, setSourceIsSystemId, setValidating, startElement, throwException, throwException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOCTYPE_DEC
public static final String DOCTYPE_DEC
JDOMetaDataParser
public JDOMetaDataParser(JDOConfiguration conf)
- Constructor. Supply configuration.
getRepository
public JDOMetaDataRepository getRepository()
- Returns the repository for this parser. If none has been set, creates
a new repository and sets it.
setRepository
public void setRepository(JDOMetaDataRepository repos)
- Set the metadata repository for this parser.
getPMClassLoader
public ClassLoader getPMClassLoader()
- Return the persistence manager class loader to pass on to parsed
metadata instances.
setPMClassLoader
public void setPMClassLoader(ClassLoader loader)
- Set the persistence manager class loader to pass on to parsed
metadata instances.
finish
protected void finish()
- Overrides:
finish
in class com.solarmetric.meta.XMLMetaDataParser
getExtension
protected String getExtension()
- Overrides:
getExtension
in class com.solarmetric.meta.XMLMetaDataParser
getExpectedRootName
protected String getExpectedRootName()
- Overrides:
getExpectedRootName
in class com.solarmetric.meta.XMLMetaDataParser
reset
protected void reset()
- Overrides:
reset
in class com.solarmetric.meta.CFMetaDataParser
getDocType
protected Reader getDocType()
throws IOException
- Overrides:
getDocType
in class com.solarmetric.meta.XMLMetaDataParser
startClass
protected void startClass(String className,
Attributes attrs)
throws SAXException
- Overrides:
startClass
in class com.solarmetric.meta.CFMetaDataParser
endClass
protected void endClass(String className)
- Overrides:
endClass
in class com.solarmetric.meta.CFMetaDataParser
startClassElement
protected void startClassElement(String name,
Attributes attrs)
throws SAXException
- Overrides:
startClassElement
in class com.solarmetric.meta.CFMetaDataParser
endClassElement
protected void endClassElement(String name)
throws SAXException
- Overrides:
endClassElement
in class com.solarmetric.meta.CFMetaDataParser
startField
protected void startField(Attributes attrs)
throws SAXException
endField
protected void endField()
startArray
protected void startArray(Attributes attrs)
throws SAXException
startCollection
protected void startCollection(Attributes attrs)
throws SAXException
startMap
protected void startMap(Attributes attrs)
throws SAXException
startExtension
protected void startExtension(Attributes attrs)
endExtension
protected void endExtension()
resolveEntity
public InputSource resolveEntity(String pub,
String sys)
throws SAXException
- Overrides:
resolveEntity
in class DefaultHandler
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.