tigase.xml

## Interface SimpleHandler

- All Known Implementing Classes:
    DomBuilderHandler, XMLFormatter, XMPPDomBuilderHandler

      public interface SimpleHandler

  `SimpleHandler` - parser handler interface for event driven parser. It is very simplified version of `org.xml.sax.ContentHandler` interface created for `SimpleParser` needs. It allows to receive events like start element (with element attributes), end element, element cdata, other XML content and error event if XML error found.

  Created: Sat Oct 2 00:00:08 2004

  Version:
    $Rev$
  Author:
    Artur Hefczyc
  See Also:
    `SimpleParser`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `elementCData(StringBuilder cdata)`
    `boolean` | `endElement(StringBuilder name)`
    `void` | `error(String errorMessage)`
    `void` | `otherXML(StringBuilder other)`
    `Object` | `restoreParserState()`
    `void` | `saveParserState(Object state)`
    `void` | `startElement(StringBuilder name, StringBuilder[] attr_names, StringBuilder[] attr_values)`

- - ### Method Detail

    - #### error

          void error(String errorMessage)

    - #### startElement

          void startElement(StringBuilder name,
                            StringBuilder[] attr_names,
                            StringBuilder[] attr_values)

    - #### elementCData

          void elementCData(StringBuilder cdata)

    - #### endElement

          boolean endElement(StringBuilder name)

    - #### otherXML

          void otherXML(StringBuilder other)

    - #### saveParserState

          @TODO(note="Use generic types to store parser data.")
          void saveParserState(Object state)

    - #### restoreParserState

          @TODO(note="Use generic types to store parser data.")
          Object restoreParserState()

Copyright © 2022 "Tigase, Inc.". All rights reserved.