com.arsdigita.xmlinterp
Class XMLWalker

java.lang.Object
  extended bycom.arsdigita.xmlinterp.XMLWalker

public class XMLWalker
extends Object

This class walks through a DOM created by parsing an XML file, passing events to an XMLInterpreter.

There are three events: shift, push, and reduce. A shift is executed when a node contains a single #text child, and no attributes. This node is not pushed or reduced. A push is executed when a node has more than one child. The effect of a push is to put a part of the interpreter in scope, and may cause a dispatch to another XMLInterpreter. A reduce is executed at the end of a pushed node.

Since:
CCM Core 5.2
Version:
$Revision: #8 $ $Date: 2004/04/07 $
Author:
Bryan Che (bche@redhat.com)

Field Summary
static String versionId
           
 
Constructor Summary
XMLWalker()
           
 
Method Summary
 void clearTracing()
           
 void setTracing()
           
 void walk(org.w3c.dom.Document d, XMLInterpreter x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

XMLWalker

public XMLWalker()
Method Detail

setTracing

public void setTracing()

clearTracing

public void clearTracing()

walk

public void walk(org.w3c.dom.Document d,
                 XMLInterpreter x)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC