com.ibm.workflow.upes
Class Container

java.lang.Object
  |
  +--com.ibm.workflow.upes.Container

public class Container
extends java.lang.Object

The Container class is a simple representation of MQSeries Workflow container. It has the ability to navigate through a Element based 'XML parse tree' and to get the container information out of an XML container representation. On the other side it provides an interface to access container members in a natural way and to generate an XML representation of itself.


Field Summary
private  java.util.Hashtable _memberMap
          _memberMap is a Hashtable which contains key-value pairs for every container element.
private  ContainerElement _rootElement
          _rootElement is the root of container elements which build up the container.
 
Constructor Summary
Container(org.w3c.dom.Element containerRoot)
          Constructor, which processes a Element and sets the internal datastructure accordingly.
 
Method Summary
 java.lang.String AsXMLString()
          The method AsXMLString returns an XML representation of the container.
 java.util.Hashtable GetMemberMap()
          Getter GetMemberMap returns the Hashtable which contains key/value pairs for every container element! This hashtable must not be used to change container values! To change container values you have to use GetRootElement
 ContainerElement GetRootElement()
          Getter GetRootElement returns the root of container elements which build up the container.
 void RemovePreDefinedDataMembers()
           
private  ContainerElement Traverse(java.lang.String prefix, org.w3c.dom.Node node)
          The method Traverse traverses a given Node recursively.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_memberMap

private java.util.Hashtable _memberMap
_memberMap is a Hashtable which contains key-value pairs for every container element. The content is redundant to _rootElement.
See Also:
GetMemberMap(), Hashtable

_rootElement

private ContainerElement _rootElement
_rootElement is the root of container elements which build up the container. The content is redundant to _memberMap.
See Also:
GetRootElement(), ContainerElement
Constructor Detail

Container

public Container(org.w3c.dom.Element containerRoot)
Constructor, which processes a Element and sets the internal datastructure accordingly.
Parameters:
containerRoot - the root element of the container XML representation.
Method Detail

GetMemberMap

public java.util.Hashtable GetMemberMap()
Getter GetMemberMap returns the Hashtable which contains key/value pairs for every container element! This hashtable must not be used to change container values! To change container values you have to use GetRootElement
See Also:
Hashtable, GetRootElement()

GetRootElement

public ContainerElement GetRootElement()
Getter GetRootElement returns the root of container elements which build up the container.
See Also:
ContainerElement

AsXMLString

public java.lang.String AsXMLString()
The method AsXMLString returns an XML representation of the container.
Returns:
An XML representation of the container.

Traverse

private ContainerElement Traverse(java.lang.String prefix,
                                  org.w3c.dom.Node node)
The method Traverse traverses a given Node recursively. During the traversal it fills the hashtable and the internal strukture with the values seen during the traversal.
Parameters:
prefix - string which describes the nesting level in a dot-notation. This is needed for accessing nested information via the hashtable.
node - is the (DOM) Node which is to processed by this method.
Returns:
ContainerElement representing the parsed node.

RemovePreDefinedDataMembers

public void RemovePreDefinedDataMembers()