org.objectweb.jonas.webapp.jonasadmin.xml
Class XMLToFormUtil

java.lang.Object
  extended by org.objectweb.jonas.webapp.jonasadmin.xml.XMLToFormUtil

public class XMLToFormUtil
extends java.lang.Object

Convert a DOM tree into an HTML form for display to the user.

Author:
Gregory Lapouchnina, Patrick Smith

Constructor Summary
XMLToFormUtil()
          Create a new XMLToFormUtil with the current ID being 0.
 
Method Summary
 java.lang.String documentToForm(org.w3c.dom.Document doc, java.util.Map mapping)
          Convert a DOM tree into a form to use on the configuration page.
 int getLastId()
          The last ID used when building the form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLToFormUtil

public XMLToFormUtil()
Create a new XMLToFormUtil with the current ID being 0.

Method Detail

documentToForm

public java.lang.String documentToForm(org.w3c.dom.Document doc,
                                       java.util.Map mapping)
Convert a DOM tree into a form to use on the configuration page.

Parameters:
doc - the document to display
mapping - Map that will store the relationship between IDs (which are also the IDs of input fields) nodes in the tree.
Returns:
a string containing the HTML for the form

getLastId

public int getLastId()
The last ID used when building the form.

Returns:
last ID used to build the form