net.rim.device.api.xml.jaxp
Interface RIMWBXMLHandler

All Known Implementing Classes:
WBXMLCodeBookCreationHandler

public interface RIMWBXMLHandler

A supplement to org.xml.sax.helpers.DefaultHandler. A RIM WBXMLParser recognizes that the DefaultHandler implements RIMWBXMLHandler, and makes these callbacks instead of the DefaultHandler's callbacks.

Since:
JDE 4.0.0

Method Summary
 void endElement(int ElementCode, String uri, String localName, String qName)
          Receives notification of the end of an element.
 void startElement(int ElementCode, String uri, String localName, String qName, Attributes attributes)
          Receives notification of the start of an element.
 

Method Detail

endElement

public void endElement(int ElementCode,
                       String uri,
                       String localName,
                       String qName)
                throws SAXException
Receives notification of the end of an element.

By default, does nothing. Applications might 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.

Parameters:
ElementCode - The code of the element.
uri - The namespace URI if namespace processing is being performed; an empty string otherwise.
localName - Specify the local name if namespace processing is being performed; an empty string otherwise.
qName - Specify the qualified name if qualified names are available; an empty string otherwise.
Throws:
SAXException - Thrown if a SAX exception, possibly wrapping another exception, occurs.
Since:
JDE 4.0.0
See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

startElement

public void startElement(int ElementCode,
                         String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Receives notification of the start of an element.

By default, does nothing. Applications might 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.

Parameters:
ElementCode - The code of the element.
uri - The namespace URI if namespace processing is being performed; an empty string otherwise.
localName - Specify the local name if namespace processing is being performed; an empty string otherwise.
qName - Specify the qualified name if qualified names are available; an empty string otherwise.
attributes - The specified or defaulted attributes.
Throws:
SAXException - Thrown if a SAX exception, possibly wrapping another exception, occurs.
Since:
JDE 4.0.0
See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.