Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.editxml.form
Class XmlForm  view XmlForm download XmlForm.java

java.lang.Object
  extended byopenfuture.editxml.form.XmlForm
All Implemented Interfaces:
java.io.Serializable

public class XmlForm
extends java.lang.Object
implements java.io.Serializable

Form bean holding entries into an XML file and the XML meta data.

Created: Sun Apr 15 11:32:14 2001

Version:
$Revision: 1.1.1.1 $

Field Summary
private  org.w3c.dom.DocumentType documentType
          Document type of the underlying XML structure.
private  java.lang.String domain
          XML domain name.
private  java.util.Hashtable entries
          list of XML entries.
private  java.lang.String filename
          file name.
private  java.util.Hashtable parseErrors
          hashtable with XML entry name as key and the error message as value.
private  java.util.LinkedList processingInstructions
          top level processing instructions of the underlying XML structure.
 
Constructor Summary
XmlForm(java.lang.String domain, java.lang.String filename, java.util.Hashtable entries)
          Creates a new XmlForm instance.
 
Method Summary
 void addEntry(java.lang.String key, java.lang.String value)
          Describe addEntry method here.
 void addParseError(java.lang.String key, java.lang.String message)
          Add a single parse error to the hashtable
 void addProcessingInstruction(org.w3c.dom.Node node)
          Add a processing instruction.
 org.w3c.dom.DocumentType getDoctype()
          Get the value of documentType.
 java.lang.String getDomain()
          Get the value of domain.
 java.util.Hashtable getEntries()
          Get the value of entries.
 java.lang.String getFilename()
          Get the value of filename.
 java.util.Hashtable getParseErrors()
          Get the value of parseErrors.
 java.util.LinkedList getProcessingInstructions()
          Get the value of processingInstructions.
 void setDoctype(org.w3c.dom.DocumentType v)
          Set the value of documentType.
 void setDomain(java.lang.String v)
          Set the value of domain.
 void setEntries(java.util.Hashtable v)
          Set the value of entries.
 void setFilename(java.lang.String v)
          Set the value of filename.
 void setParseErrors(java.util.Hashtable v)
          Set the value of parseErrors.
 void setProcessingInstructions(java.util.LinkedList v)
          Set the value of processingInstructions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

private java.lang.String domain
XML domain name.


filename

private java.lang.String filename
file name.


entries

private java.util.Hashtable entries
list of XML entries.


documentType

private org.w3c.dom.DocumentType documentType
Document type of the underlying XML structure.


parseErrors

private java.util.Hashtable parseErrors
hashtable with XML entry name as key and the error message as value.


processingInstructions

private java.util.LinkedList processingInstructions
top level processing instructions of the underlying XML structure.

Constructor Detail

XmlForm

public XmlForm(java.lang.String domain,
               java.lang.String filename,
               java.util.Hashtable entries)
Creates a new XmlForm instance.

Method Detail

getDomain

public java.lang.String getDomain()
Get the value of domain.


setDomain

public void setDomain(java.lang.String v)
Set the value of domain.


getFilename

public java.lang.String getFilename()
Get the value of filename.


setFilename

public void setFilename(java.lang.String v)
Set the value of filename.


getEntries

public java.util.Hashtable getEntries()
Get the value of entries.


setEntries

public void setEntries(java.util.Hashtable v)
Set the value of entries.


addEntry

public void addEntry(java.lang.String key,
                     java.lang.String value)
Describe addEntry method here.


getDoctype

public org.w3c.dom.DocumentType getDoctype()
Get the value of documentType.


setDoctype

public void setDoctype(org.w3c.dom.DocumentType v)
Set the value of documentType.


addProcessingInstruction

public void addProcessingInstruction(org.w3c.dom.Node node)
Add a processing instruction.


getProcessingInstructions

public java.util.LinkedList getProcessingInstructions()
Get the value of processingInstructions.


setProcessingInstructions

public void setProcessingInstructions(java.util.LinkedList v)
Set the value of processingInstructions.


getParseErrors

public java.util.Hashtable getParseErrors()
Get the value of parseErrors.


setParseErrors

public void setParseErrors(java.util.Hashtable v)
Set the value of parseErrors.


addParseError

public void addParseError(java.lang.String key,
                          java.lang.String message)
Add a single parse error to the hashtable