nu.xom.samples
Class SourceCodeGenerator
java.lang.Object
nu.xom.samples.SourceCodeGenerator
public class SourceCodeGenerator
- extends java.lang.Object
This program essentially serializes a XOM Node
object into the Java statements necessary to build the
Node
using XOM. This may be useful for building
unit tests.
- Version:
- 1.0
- Author:
- Elliotte Rusty Harold
Method Summary |
static void |
generateClass(nu.xom.Document doc)
|
static void |
generateDoc(nu.xom.Document doc)
|
static void |
generateSource(nu.xom.Node node,
java.lang.String parent)
|
static void |
main(java.lang.String[] args)
The driver method for the SourceCodeGenerator program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceCodeGenerator
public SourceCodeGenerator()
main
public static void main(java.lang.String[] args)
The driver method for the SourceCodeGenerator program.
- Parameters:
args
- args[0]
contains the URL
of the document to be processed.
generateClass
public static void generateClass(nu.xom.Document doc)
generateSource
public static void generateSource(nu.xom.Node node,
java.lang.String parent)
generateDoc
public static void generateDoc(nu.xom.Document doc)
Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu