com.simonstl.moe.adapter
Class MOESAXA
java.lang.Object
|
+--com.simonstl.moe.adapter.MOESAXA
- All Implemented Interfaces:
- org.xml.sax.XMLReader
- public class MOESAXA
- extends java.lang.Object
- implements org.xml.sax.XMLReader
The MOESAXA adapter class presents a MOE object as SAX events.
Note: MOESAX currently expects all objects to be complete.
Dang. This appears to duplicate functionality in MOEtoSAX
. Ouch.
version 0.01 is the initial release.
- Version:
- 0.01 20 September 2001
- Author:
- Simon St.Laurent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentHandler
protected org.xml.sax.ContentHandler contentHandler
dTDHandler
protected org.xml.sax.DTDHandler dTDHandler
errorHandler
protected org.xml.sax.ErrorHandler errorHandler
entityResolver
protected org.xml.sax.EntityResolver entityResolver
MOEtalker
protected CoreComponentI MOEtalker
MOESAXA
public MOESAXA()
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface org.xml.sax.XMLReader
getDTDHandler
public org.xml.sax.DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface org.xml.sax.XMLReader
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface org.xml.sax.XMLReader
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface org.xml.sax.XMLReader
getFeature
public boolean getFeature(java.lang.String name)
- Specified by:
getFeature
in interface org.xml.sax.XMLReader
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in interface org.xml.sax.XMLReader
parse
public void parse(org.xml.sax.InputSource input)
throws org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
parse
public void parse(java.lang.String systemId)
throws org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Specified by:
setContentHandler
in interface org.xml.sax.XMLReader
setDTDHandler
public void setDTDHandler(org.xml.sax.DTDHandler handler)
- Specified by:
setDTDHandler
in interface org.xml.sax.XMLReader
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
- Specified by:
setEntityResolver
in interface org.xml.sax.XMLReader
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
- Specified by:
setErrorHandler
in interface org.xml.sax.XMLReader
setFeature
public void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setFeature
in interface org.xml.sax.XMLReader
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setProperty
in interface org.xml.sax.XMLReader
setMOEComponent
public void setMOEComponent(CoreComponentI talker)
setMOEComponent
public CoreComponentI setMOEComponent()
parse
public void parse()
throws org.xml.sax.SAXException
The parse method walks the MOE tree and reports it as a series of SAX events.
Note that this method currently expects a document or element object as its foundation and won't be especially happy if you feed it something else.
parse
public void parse(CoreComponentI component)
throws org.xml.sax.SAXException
parseAsElement
protected void parseAsElement(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsCharacters
protected void parseAsCharacters(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsWhitespace
protected void parseAsWhitespace(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsDocument
protected void parseAsDocument(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsPI
protected void parseAsPI(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsCDATA
protected void parseAsCDATA(CoreComponentI talker)
throws org.xml.sax.SAXException
parseAsComment
protected void parseAsComment(CoreComponentI talker)
throws org.xml.sax.SAXException