com.bluestream.xdb.util
Interface XDBDocHandler


public interface XDBDocHandler

XDBDocHandler This interface defines the XStreamDB event stream visible to the Client API.


Method Summary
 void xdbAttribute(String attributeName, FlexStringBuffer fsbValue, String prefix, String namespaceURI)
          Called when the parser detects an Attribute inside of an Element.
 void xdbCData(FlexStringBuffer fsb)
          Called when a CDATA Node is detected by the parser.
 void xdbComment(FlexStringBuffer fsb)
          Called when a comment is detected by the parser.
 void xdbEndDocument()
          Called when the parser detects the end of a document.
 void xdbEndElement(String prefix, String elementName, String namespaceURI)
          Called when the parser detects an Element (tag) being closed.
 void xdbProcessingInstruction(String target, String data)
          Called when a processing instruction is detected by the parser.
 void xdbStartDocument(DocumentInfo docInfo)
          Called when the parser detects the start of a document.
 void xdbStartElement(String prefix, String elementName, String namespaceURI)
          Called when the parser detects the start of a Element.
 void xdbText(FlexStringBuffer fsb)
          Called when a Text Node is detected by the parser.
 

Method Detail

xdbStartDocument

public void xdbStartDocument(DocumentInfo docInfo)
Called when the parser detects the start of a document.

Parameters:
docInfo - A DocumentInfo object.
See Also:
DocumentInfo

xdbEndDocument

public void xdbEndDocument()
Called when the parser detects the end of a document.


xdbStartElement

public void xdbStartElement(String prefix,
                            String elementName,
                            String namespaceURI)
Called when the parser detects the start of a Element.


xdbEndElement

public void xdbEndElement(String prefix,
                          String elementName,
                          String namespaceURI)
Called when the parser detects an Element (tag) being closed.


xdbAttribute

public void xdbAttribute(String attributeName,
                         FlexStringBuffer fsbValue,
                         String prefix,
                         String namespaceURI)
Called when the parser detects an Attribute inside of an Element.

Parameters:
attributeName - The attribute's name. For NS Decls this will contain the declPrefix, or for no declPrefix this will contain xmlns.
fsbValue - The character representation of the attribute value - only valid for the duration of this call.

xdbText

public void xdbText(FlexStringBuffer fsb)
Called when a Text Node is detected by the parser.

Parameters:
fsb - The character buffer holding the text NOTE: This method will be called for each contiguous text block under an element. This may result in multiple xdbText() calls for a single element.
See Also:
FlexStringBuffer

xdbCData

public void xdbCData(FlexStringBuffer fsb)
Called when a CDATA Node is detected by the parser.

Parameters:
fsb - The character buffer holding the CDATA content
See Also:
FlexStringBuffer

xdbComment

public void xdbComment(FlexStringBuffer fsb)
Called when a comment is detected by the parser.

Parameters:
fsb - The character buffer holding the text.
See Also:
FlexStringBuffer

xdbProcessingInstruction

public void xdbProcessingInstruction(String target,
                                     String data)
Called when a processing instruction is detected by the parser.

Parameters:
target - The name of the target application as embedded in the PI.
data - The string to be sent to the target.


Copyright 2006 Bluestream Database Software Corp. All Rights Reserved.