net.sf.tomp.xtcl.command
Class Doc

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.VarCommand
          extended by net.sf.tomp.xtcl.command.Doc
All Implemented Interfaces:
Command

public class Doc
extends VarCommand

Creates an empty DOM tree and stores it as variable into the Context.

Author:
tomp

Field Summary
 
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand
var
 
Constructor Summary
Doc()
           
 
Method Summary
 int execute(Context context)
          Creates an empty DOM tree and stores it as variable into the Context.
 java.lang.String toString()
          String representation.
 
Methods inherited from class net.sf.tomp.xtcl.command.VarCommand
setVar
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Doc

public Doc()
Method Detail

execute

public int execute(Context context)
            throws java.lang.Exception
Creates an empty DOM tree and stores it as variable into the Context.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context -
Returns:
0 (OK)
Throws:
java.lang.Exception - if DOM Document could not be created.

toString

public java.lang.String toString()
String representation.

Overrides:
toString in class java.lang.Object
Returns:
"DOCUMENT " + varname