com.solarmetric.meta
Class  XMLMetaDataParser
java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.solarmetric.meta.XMLMetaDataParser
- All Implemented Interfaces: 
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, MetaDataParser
- Direct Known Subclasses: 
- CFMetaDataParser
- public abstract synchronized class XMLMetaDataParser- extends DefaultHandler- implements MetaDataParser
 
| Method Summary | 
| protected  void | addResult(Object)
 | 
|  void | characters(char[],
           int,
           int)
 | 
|  void | clear()
 | 
| protected  ClassLoader | currentClassLoader()
 | 
| protected abstract  void | endElement(String)
 | 
|  void | endElement(String,
           String,
           String)
 | 
|  void | error(SAXParseException)
 | 
|  void | fatalError(SAXParseException)
 | 
|  URL | findMetaData(Class)
 | 
| protected  void | finish()
 | 
|  ClassLoader | getClassLoader()
 | 
| protected  String | getCurrentLocation()
 | 
| protected  Reader | getDocType()
 | 
| protected  String | getExpectedRootName()
 | 
| protected abstract  String | getExtension()
 | 
| protected  LexicalHandler | getLexicalHandler()
 | 
|  Location | getLocation()
 | 
|  Log | getLog()
 | 
|  boolean | getParseText()
 | 
|  Collection | getResults()
 | 
| protected  File | getSourceFile()
 | 
|  boolean | getSourceIsSystemId()
 | 
| protected  String | getSourceName()
 | 
| protected  String | getText()
 | 
|  boolean | isValidating()
 | 
|  void | parse(Class)
 | 
|  void | parse(File)
 | 
|  void | parse(Reader,
      String)
 | 
|  void | parse(URL)
 | 
| protected  void | parseNew(Reader,
         String)
 | 
| protected  void | reset()
 | 
|  void | setClassLoader(ClassLoader)
 | 
|  void | setDocumentLocator(Locator)
 | 
|  void | setLocation(Location)
 | 
|  void | setLog(Log)
 | 
|  void | setParseText(boolean)
 | 
|  void | setSourceIsSystemId(boolean)
 | 
|  void | setValidating(boolean)
 | 
| protected abstract  void | startElement(String,
             Attributes)
 | 
|  void | startElement(String,
             String,
             String,
             Attributes)
 | 
| protected  void | throwException(String)
 | 
| protected  void | throwException(String,
               Exception)
 | 
 
| Methods inherited from class org.xml.sax.helpers.DefaultHandler | 
| endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
XMLMetaDataParser
public XMLMetaDataParser()
getParseText
public boolean getParseText()
- 
 
setParseText
public void setParseText(boolean)
- 
 
getSourceIsSystemId
public boolean getSourceIsSystemId()
- 
 
setSourceIsSystemId
public void setSourceIsSystemId(boolean)
- 
 
getClassLoader
public ClassLoader getClassLoader()
- 
 
setClassLoader
public void setClassLoader(ClassLoader)
- 
 
currentClassLoader
protected ClassLoader currentClassLoader()
- 
 
isValidating
public boolean isValidating()
- 
- Specified by: 
- isValidatingin interface- MetaDataParser
 
setValidating
public void setValidating(boolean)
- 
- Specified by: 
- setValidatingin interface- MetaDataParser
 
getLexicalHandler
protected LexicalHandler getLexicalHandler()
- 
 
getLog
public Log getLog()
- 
- Specified by: 
- getLogin interface- MetaDataParser
 
setLog
public void setLog(Log)
- 
- Specified by: 
- setLogin interface- MetaDataParser
 
getResults
public Collection getResults()
- 
- Specified by: 
- getResultsin interface- MetaDataParser
 
setDocumentLocator
public void setDocumentLocator(Locator)
- 
- Overrides:
- setDocumentLocatorin class- DefaultHandler
 
getLocation
public Location getLocation()
- 
 
setLocation
public void setLocation(Location)
- 
 
findMetaData
public URL findMetaData(Class)
- 
 
parse
public void parse(Class)
           throws IOException
- 
- Specified by: 
- parsein interface- MetaDataParser
 
parse
public void parse(URL)
           throws IOException
- 
- Specified by: 
- parsein interface- MetaDataParser
 
parse
public void parse(File)
           throws IOException
- 
- Specified by: 
- parsein interface- MetaDataParser
 
parse
public void parse(Reader,
                  String)
           throws IOException
- 
- Specified by: 
- parsein interface- MetaDataParser
 
parseNew
protected void parseNew(Reader,
                        String)
                 throws IOException
- 
 
clear
public void clear()
- 
- Specified by: 
- clearin interface- MetaDataParser
 
error
public void error(SAXParseException)
           throws SAXException
- 
- Overrides:
- errorin class- DefaultHandler
 
fatalError
public void fatalError(SAXParseException)
                throws SAXException
- 
- Overrides:
- fatalErrorin class- DefaultHandler
 
startElement
public void startElement(String,
                         String,
                         String,
                         Attributes)
                  throws SAXException
- 
- Overrides:
- startElementin class- DefaultHandler
 
endElement
public void endElement(String,
                       String,
                       String)
                throws SAXException
- 
- Overrides:
- endElementin class- DefaultHandler
 
characters
public void characters(char[],
                       int,
                       int)
- 
- Overrides:
- charactersin class- DefaultHandler
 
startElement
protected abstract void startElement(String,
                                     Attributes)
                              throws SAXException
- 
 
endElement
protected abstract void endElement(String)
                            throws SAXException
- 
 
getExtension
protected abstract String getExtension()
- 
 
addResult
protected void addResult(Object)
- 
 
finish
protected void finish()
- 
 
reset
protected void reset()
- 
 
getDocType
protected Reader getDocType()
                     throws IOException
- 
 
getExpectedRootName
protected String getExpectedRootName()
- 
 
getText
protected String getText()
- 
 
getSourceName
protected String getSourceName()
- 
 
getSourceFile
protected File getSourceFile()
- 
 
getCurrentLocation
protected String getCurrentLocation()
- 
 
throwException
protected void throwException(String)
                       throws SAXException
- 
 
throwException
protected void throwException(String,
                              Exception)
                       throws SAXException
- 
 
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.