Interface TreeParsingController
- All Known Implementing Classes:
TreeBuildingContentHandler
public interface TreeParsingController
This interface allows
TreeContentHandlers to control the parsing
process, e.g. by registering a delegate or stop parsing.-
Method Summary
Modifier and TypeMethodDescriptionGet the currently parsed element node.voidsetDelegate(TreeContentHandler newDelegate) Set a new handler delegate.voidTell the controller to stop parsing, e.g.
-
Method Details
-
setDelegate
Set a new handler delegate.- Parameters:
newDelegate- the new delegate.
-
getCurrentElement
TreeElement getCurrentElement()Get the currently parsed element node.- Returns:
- the currently parsed element node.
-
stopParsing
void stopParsing()Tell the controller to stop parsing, e.g. in case of a parsing error.
-