JTools

org.jtools.tmpl.compiler.parser.handler
Class XmlNodeHandler

java.lang.Object
  extended by org.jtools.tmpl.compiler.parser.handler.SimpleNodeHandler
      extended by org.jtools.tmpl.compiler.parser.handler.XmlNodeHandler
All Implemented Interfaces:
NodeHandler

public class XmlNodeHandler
extends SimpleNodeHandler


Field Summary
 
Fields inherited from class org.jtools.tmpl.compiler.parser.handler.SimpleNodeHandler
addEmptyLinebreaks, current, EMPTY, endTags, escapeTags, flushedOnLinebreak, lines, node, parent, parser
 
Constructor Summary
XmlNodeHandler(NodeParser parser, NodeHandler parent, Node node, boolean generic, boolean nested, boolean allowNestedChilds)
           
 
Method Summary
 List<Node> getChildNodes()
           
static NodeHandler.Factory getGenericXmlFactory()
           
static NodeHandler.Factory getGenericXmlFactoryNoNested()
           
static NodeHandler.Factory getStaticXmlFactory()
           
static NodeHandler.Factory getStaticXmlFactoryNoNested()
           
 Tag onChild(NodeHandler child)
           
 Tag onNode()
           
 
Methods inherited from class org.jtools.tmpl.compiler.parser.handler.SimpleNodeHandler
addChar, addLinebreak, embed, flush, getEndTags, getEscapeTags, getFactory, getInfoSupport, getNode, getNodeParser, getOuterCol, getOuterLine, getParent, getText, getTextAsString, isEndOnLinebreak, isLineDelimited, setOuterCol, setOuterLine, setText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlNodeHandler

public XmlNodeHandler(NodeParser parser,
                      NodeHandler parent,
                      Node node,
                      boolean generic,
                      boolean nested,
                      boolean allowNestedChilds)
Method Detail

getGenericXmlFactory

public static NodeHandler.Factory getGenericXmlFactory()

getGenericXmlFactoryNoNested

public static NodeHandler.Factory getGenericXmlFactoryNoNested()

getStaticXmlFactory

public static NodeHandler.Factory getStaticXmlFactory()

getStaticXmlFactoryNoNested

public static NodeHandler.Factory getStaticXmlFactoryNoNested()

getChildNodes

public List<Node> getChildNodes()
Specified by:
getChildNodes in interface NodeHandler
Overrides:
getChildNodes in class SimpleNodeHandler

onChild

public Tag onChild(NodeHandler child)
            throws IOException,
                   CompilerException
Specified by:
onChild in interface NodeHandler
Overrides:
onChild in class SimpleNodeHandler
Throws:
IOException
CompilerException

onNode

public Tag onNode()
           throws IOException,
                  CompilerException
Specified by:
onNode in interface NodeHandler
Overrides:
onNode in class SimpleNodeHandler
Throws:
IOException
CompilerException

JTools

© 2000-2006, JTools.org.