gov.lanl.Utility
Class DOMTree2Xml

java.lang.Object
  |
  +--gov.lanl.Utility.DOMTree2Xml

public class DOMTree2Xml
extends java.lang.Object

Provides conversion from the DOMTree in a JTree view to Xml. The DOMTree node may be provided in a constructor, or via a set call; the Xml is only provided via a get call, is generated from the current DOMTree

Version:
$Revision: 1.3 $ $Date: 2002/11/15 00:48:38 $
Author:
Jim George, Sascha Koenig

Constructor Summary
DOMTree2Xml()
          Creates the class with no current xml.
DOMTree2Xml(javax.swing.tree.DefaultMutableTreeNode inTreeNode)
          Create the class with a current tree node
 
Method Summary
 javax.swing.tree.DefaultMutableTreeNode getTreeNode()
          Return the current dom tree node.
 java.lang.String getXml()
          Generate the xml for the current DOMTree, acutally a JTree and return it.
 void setTreeNode(javax.swing.tree.DefaultMutableTreeNode inTreeNode)
          Set the current dom tree node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMTree2Xml

public DOMTree2Xml()
Creates the class with no current xml.


DOMTree2Xml

public DOMTree2Xml(javax.swing.tree.DefaultMutableTreeNode inTreeNode)
Create the class with a current tree node

Parameters:
inTreeNode - is the DOMTree to use as the current tree node
Method Detail

setTreeNode

public void setTreeNode(javax.swing.tree.DefaultMutableTreeNode inTreeNode)
Set the current dom tree node.


getTreeNode

public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
Return the current dom tree node.

Returns:
the tree node as a DefaultMutableTreeNode

getXml

public java.lang.String getXml()
Generate the xml for the current DOMTree, acutally a JTree and return it.

Returns:
the xml as a string representing the current DOMTree


Copyright © 2000 Apache Software Foundation. All Rights Reserved.