xmltool.codegen
Class PoetGenerateCode

java.lang.Object
  |
  +--xmltool.codegen.PoetGenerateCode

public class PoetGenerateCode
extends java.lang.Object

Generate the query designed by user in Poet OQL form. This uses class GenerateCode.java Currently there is support only for a query on a single DTD, but provision is made to extend the same code for query on more than one DTD with a join condition. To change the QT4XML mode from client server to stanalone, search for the word COMMENT in this file, and follow instructions written over there.


Constructor Summary
PoetGenerateCode(Node[] node, int numNodes, Link[] link, int numLinks)
          Called after the generate button is pressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoetGenerateCode

public PoetGenerateCode(Node[] node,
                        int numNodes,
                        Link[] link,
                        int numLinks)
                 throws java.io.IOException
Called after the generate button is pressed
Parameters:
node[] - all the nodes
numNodes - Number of nodes
link[] - all the links
Throws:
java.io.IOException - can't write to file