|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.workflow.upes.ContainerElement
The ContainerElement class is a simple representation of MQSeries Workflow container elements. It has the ability to navigate through a TXElement based 'XML parse tree' and to get the container element information out of an XML container representation. On the other side it provides an interface to access its value or its subelements. It also provides an interface to generate an XML representation of itself. A container element either contains a value represented as string or a Vector of subelements. I.e. at least one of both fields (_Value and _Children is always null).
Field Summary | |
private java.util.Vector |
_Children
_Children is the Vector containing the sub container elements of the given container element. |
private java.lang.String |
_Name
_Name is the Name of the container element. |
private java.lang.String |
_Value
_Value is the string representation of the container elements value. |
Constructor Summary | |
ContainerElement(java.lang.String name)
Constructor which set the name of the container element. |
Method Summary | |
void |
AddChild(ContainerElement c)
AddChild is the method to add a sub container element to the given element. |
java.lang.String |
AsXMLString(java.lang.String indention,
boolean withTags)
AsXMLString returns an XML representation of the given container element, taking the indention in consideration. |
ContainerElement |
GetChildNamed(java.lang.String name)
GetChildNamed returns the first sub container element which has the given name. |
java.util.Vector |
GetChildren()
GetChildren getter of _Children, the vector of sub container elements. |
java.lang.String |
GetName()
GetValue getter of _Value. |
ContainerElement |
GetUserData()
|
java.lang.String |
GetValue()
GetValue getter of _Value. |
void |
RemoveChild(ContainerElement c)
RemoveChild is the method to delete a container element from the given elements' children. |
void |
SetValue(java.lang.String value)
SetValue setter of _Value. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String _Name
String
,
GetName()
private java.lang.String _Value
String
,
GetValue()
,
SetValue(java.lang.String)
private java.util.Vector _Children
Vector
,
GetChildren()
,
AddChild(com.ibm.workflow.upes.ContainerElement)
Constructor Detail |
public ContainerElement(java.lang.String name)
Method Detail |
public void AddChild(ContainerElement c)
public void RemoveChild(ContainerElement c)
public java.lang.String AsXMLString(java.lang.String indention, boolean withTags)
public ContainerElement GetChildNamed(java.lang.String name)
null if there is no sub container element with the given name.
public void SetValue(java.lang.String value)
public java.lang.String GetValue()
public java.util.Vector GetChildren()
public java.lang.String GetName()
public ContainerElement GetUserData()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |