Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.miamm.soapmmil.test.simple
Class SimpleContentHandler  view SimpleContentHandler download SimpleContentHandler.java

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.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 $

Field Summary
(package private)  java.lang.String _dream
           
(package private)  boolean _inDream
           
(package private)  boolean _inReality
           
(package private) static org.apache.log4j.Logger _logger
           
(package private)  java.lang.String _reality
           
 
Fields inherited from interface org.miamm.soapmmil.test.simple.SimpleMIAMMServiceConstants
ALPHA_RECEIVER_PROPERTY, BRAVO_RECEIVER_PROPERTY, CHARLIE_RECEIVER_PROPERTY, ELEMENT_TAG_DREAM, ELEMENT_TAG_REALITY, ELEMENT_TAG_ROOT, ZULU_RECEIVER_PROPERTY
 
Constructor Summary
SimpleContentHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data inside an element.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Receive notification of the end of an element.
 java.lang.String getDream()
           
 java.lang.String getReality()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          Receive notification of the start of an element.
 
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
 

Field Detail

_logger

static org.apache.log4j.Logger _logger

_inReality

boolean _inReality

_inDream

boolean _inDream

_reality

java.lang.String _reality

_dream

java.lang.String _dream
Constructor Detail

SimpleContentHandler

public SimpleContentHandler()
Method Detail

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()