net.aethersanctum.curlyml
Interface ParseEventHandler

All Known Implementing Classes:
DocumentLoader

public interface ParseEventHandler

interface for classes that will handle events from our simple parser. there are only three kinds of events we're interested in.

Author:
ben
See Also:
DocumentLoader

Method Summary
 void handleLeaf(java.lang.String name)
          Handle the reading of a leaf node.
 void handleParentBegin(java.lang.String name)
          Handle the reading of the beginning of a parent node.
 void handleParentEnd(boolean hadChildren)
          Handle the end of the reading of a parent node.
 

Method Detail

handleLeaf

void handleLeaf(java.lang.String name)
Handle the reading of a leaf node.

Parameters:
name -

handleParentBegin

void handleParentBegin(java.lang.String name)
Handle the reading of the beginning of a parent node.

Parameters:
name -

handleParentEnd

void handleParentEnd(boolean hadChildren)
Handle the end of the reading of a parent node.

Parameters:
hadChildren - will be true if the parent had any children or false if it was empty