java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.miamm.soapmmil.test.simple.SimpleContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, SimpleMIAMMServiceConstants
- public class SimpleContentHandler
- extends org.xml.sax.helpers.DefaultHandler
- implements SimpleMIAMMServiceConstants
A simple SAX ContentHandler for the XML data handled
SimpleMIAMMService. Note, this is very poorly
implemented, and anybody who writes code like this for his service
deserves to be slapped upside the head.
Note: normally, you wouldn't write a class like this... you'd take
advantage, for example, of Dirk's fancy MMIL parser
- Version:
- $Revision: 1.5 $
$Date: 2003/03/01 23:46:19 $
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_logger
static org.apache.log4j.Logger _logger
_inReality
boolean _inReality
_inDream
boolean _inDream
_reality
java.lang.String _reality
_dream
java.lang.String _dream
SimpleContentHandler
public SimpleContentHandler()
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of the start of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).
- Specified by:
startElement in interface org.xml.sax.ContentHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of the end of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each element (such as finalising a tree node or writing
output to a file).
- Specified by:
endElement in interface org.xml.sax.ContentHandler
characters
public void characters(char[] ch,
int start,
int length)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler
- Receive notification of character data inside an element.
By default, do nothing. Application writers may override this
method to take specific actions for each chunk of character data
(such as adding the data to a node or buffer, or printing it to
a file).
- Specified by:
characters in interface org.xml.sax.ContentHandler
getReality
public java.lang.String getReality()
getDream
public java.lang.String getDream()