wt.xml
Class DOMComponents

java.lang.Object
  extended bywt.xml.DOMComponents
All Implemented Interfaces:
Externalizable, Serializable, XMLMechanismConstants

public class DOMComponents
extends Object
implements XMLMechanismConstants, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static boolean DEBUG
           
private  Document doc
           
static long EXTERNALIZATION_VERSION_UID
           
private  Node node
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  Stack stack
           
 
Fields inherited from interface wt.util.xml.XMLMechanismConstants
ATTLIST_ATTRIBUTE_NAME, ATTLIST_CLASS_NAME, ATTLIST_ENCODING_TYPE, ATTLIST_OID, DEFAULT_XML_PARSER_IMPLEMENTATION, DOCUMENT_ELEMENT_NAME, SELF_DESCRIBING_XML, XML_FILE_EXT
 
Constructor Summary
DOMComponents()
           
 
Method Summary
 void addCDATASection(String text)
          Appends a CDATA_SECTION_NODE.
 void documentBegin()
          Initializes a new instance of org.w3c.dom.Document.
 void documentElementBegin(String name)
          Appends a document element to an org.w3c.dom.Document.
 void elementBegin(boolean root, String name)
          Pushes the node stack and appends an element.
 void elementEnd()
          Pops the node stack.
 Document getDoc()
          Gets the value of the attribute: doc.
 Node getNode()
          Gets the value of the attribute: node.
 Stack getStack()
          Gets the value of the attribute: stack.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(DOMComponents thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setDoc(Document a_Doc)
          Sets the value of the attribute: doc.
 void setNode(Node a_Node)
          Sets the value of the attribute: node.
 void setStack(Stack a_Stack)
          Sets the value of the attribute: stack.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

stack

private Stack stack

doc

private Document doc

node

private Node node

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

DOMComponents

public DOMComponents()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(DOMComponents thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getStack

public Stack getStack()
Gets the value of the attribute: stack.

Supported API: false

Returns:
Stack

setStack

public void setStack(Stack a_Stack)
Sets the value of the attribute: stack.

Supported API: false

Parameters:
a_Stack -

getDoc

public Document getDoc()
Gets the value of the attribute: doc.

Supported API: false

Returns:
Document

setDoc

public void setDoc(Document a_Doc)
Sets the value of the attribute: doc.

Supported API: false

Parameters:
a_Doc -

getNode

public Node getNode()
Gets the value of the attribute: node.

Supported API: false

Returns:
Node

setNode

public void setNode(Node a_Node)
Sets the value of the attribute: node.

Supported API: false

Parameters:
a_Node -

documentBegin

public void documentBegin()
                   throws XMLMechanismException
Initializes a new instance of org.w3c.dom.Document.

Supported API: false

Throws:
XMLMechanismException

elementBegin

public void elementBegin(boolean root,
                         String name)
Pushes the node stack and appends an element.

Supported API: false

Parameters:
root - True if the element is for the class whose instances are being exported.
name - The element name.

elementEnd

public void elementEnd()
Pops the node stack. To be used after elementBegin().

Supported API: false


documentElementBegin

public void documentElementBegin(String name)
Appends a document element to an org.w3c.dom.Document.

Supported API: false

Parameters:
name - The name of the document element.

addCDATASection

public void addCDATASection(String text)
Appends a CDATA_SECTION_NODE.

Supported API: false

Parameters:
text - Text to be included in the CDATA section.