org.gxml.u
Interface GuContentHandler

All Superinterfaces:
java.io.Closeable, java.io.Flushable
All Known Subinterfaces:
GuFragmentBuilder<N>

public interface GuContentHandler
extends java.io.Closeable, java.io.Flushable

Receive notification of the logical content of an XML tree. In this context, logical content applies principally to the information available in the data model.

This interface is the main interface that a streaming XML application implements if it needs to be informed of the data model content of a document.


Method Summary
 void attribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String prefix, java.lang.String value)
          Receive notification of an attribute with a dm:typed-value.
 void comment(java.lang.String value)
          Receive notification of a comment information item.
 void endDocument()
          Receive notification of the end of a document.
 void endElement()
          Receive notification of the end of an element.
 void namespace(java.lang.String prefix, java.lang.String namespaceURI)
          Receive notification of an namespace in the style of a lexical attribute.
 void processingInstruction(java.lang.String target, java.lang.String data)
          Receive notification of a processing instruction.
 void startDocument()
          Receive notification of the beginning of a document.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String prefix)
          Receive notification of the beginning of an element.
 void text(java.lang.String value)
          Receive notification of a text event.
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface java.io.Flushable
flush
 

Method Detail

attribute

void attribute(java.lang.String namespaceURI,
               java.lang.String localName,
               java.lang.String prefix,
               java.lang.String value)
               throws java.io.IOException
Receive notification of an attribute with a dm:typed-value.

Parameters:
namespaceURI - The namespace-uri part of the attribute name. Cannot be null.
localName - The local-name part of the attribute name. Cannot be null.
value - The dm:typed-value property of the attribute.
Throws:
java.io.IOException

comment

void comment(java.lang.String value)
             throws java.io.IOException
Receive notification of a comment information item.

Parameters:
value - The content of the comment. Cannot be null.
Throws:
java.io.IOException

endDocument

void endDocument()
                 throws java.io.IOException
Receive notification of the end of a document.

Throws:
java.io.IOException

endElement

void endElement()
                throws java.io.IOException
Receive notification of the end of an element.

Throws:
java.io.IOException

namespace

void namespace(java.lang.String prefix,
               java.lang.String namespaceURI)
               throws java.io.IOException
Receive notification of an namespace in the style of a lexical attribute.
Note that the timing of the namespace event is immediately after a start element.

Parameters:
prefix - The name of the namespace node. Cannot be null.
namespaceURI - The string value of the namespace node. Cannot be null.
Throws:
java.io.IOException

processingInstruction

void processingInstruction(java.lang.String target,
                           java.lang.String data)
                           throws java.io.IOException
Receive notification of a processing instruction.

Parameters:
target - The processing instruction target. Cannot be null .
data - The processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target.
Throws:
java.io.IOException

startDocument

void startDocument()
                   throws java.io.IOException
Receive notification of the beginning of a document.

Throws:
java.io.IOException

startElement

void startElement(java.lang.String namespaceURI,
                  java.lang.String localName,
                  java.lang.String prefix)
                  throws java.io.IOException
Receive notification of the beginning of an element.

Parameters:
namespaceURI - The namespace-uri part of the element name. Cannot be null.
localName - The local-name part of the element name. Cannot be null.
prefix - The prefix-hint part of the element name.
Throws:
java.io.IOException

text

void text(java.lang.String value)
          throws java.io.IOException
Receive notification of a text event.

Parameters:
value - The dm:typed-value property of the text node.
Throws:
java.io.IOException


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.