net.sourceforge.guacamole.net.basic.xml
Interface TagHandler

All Known Implementing Classes:
AuthorizeTagHandler, ConnectionTagHandler, ParamTagHandler, ProtocolTagHandler, UserMappingTagHandler

public interface TagHandler

A simple element-level event handler for events triggered by the SAX-driven DocumentHandler parser.

Author:
Mike Jumper

Method Summary
 TagHandler childElement(String localName, Attributes attributes)
          Called when a child element of the current element is parsed.
 void complete(String textContent)
          Called when this element, and all child elements, have been fully parsed, and the entire text content of this element (if any) is available.
 

Method Detail

childElement

TagHandler childElement(String localName,
                        Attributes attributes)
                        throws SAXException
Called when a child element of the current element is parsed.

Parameters:
localName - The local name of the child element seen.
attributes - The attributes of the child element seen.
Returns:
The TagHandler which should handle all element-level events related to the child element.
Throws:
SAXException - If the child element being parsed was not expected, or some other error prevents a proper TagHandler from being constructed for the child element.

complete

void complete(String textContent)
              throws SAXException
Called when this element, and all child elements, have been fully parsed, and the entire text content of this element (if any) is available.

Parameters:
textContent - The full text content of this element, if any.
Throws:
SAXException - If the text content received is not valid for any reason, or the child elements parsed are not correct.


Copyright © 2013. All Rights Reserved.