public class ClientElement
extends java.lang.Object
implements java.io.Serializable
Defines a simple XML element.
  ClientElement instances are serialized to the client from the middle tier.
  The middle-tier provides an XML parser and can construct an XML hierarchy
  tree from XML, or convert a tree into XML.
ClientDocument, 
Serialized Form| Constructor and Description | 
|---|
| ClientElement()Creates an empty  ClientElementinstance. | 
| ClientElement(java.lang.String name)Creates a named  ClientElementinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAttribute(java.lang.String key,
            java.lang.String value)Adds an attribute to this element. | 
| void | addChild(ClientElement element)Adds a subsidiary element to this element. | 
| java.lang.String | getAttribute(java.lang.String name)Finds an attribute with given name. | 
| ClientElement[] | getElementsOfType(java.lang.String tagName)Creates an array of all subsidiary elements having given name | 
| java.lang.String | getName()Gets the name of this element. | 
| void | removeAttribute(java.lang.String key)Removes an attribute from this element. | 
| void | removeChild(ClientElement element)Removes a subsidiary element from this element. | 
| void | setName(java.lang.String name)Sets the name of this element. | 
public ClientElement()
ClientElement instance.public ClientElement(java.lang.String name)
ClientElement instance.name - the instance's name.public java.lang.String getName()
public void setName(java.lang.String name)
name - this element's new name.public void addAttribute(java.lang.String key,
                java.lang.String value)
key - the attribute's name.value - the attribute's encoded value.public void removeAttribute(java.lang.String key)
key - the attribute's name.public void addChild(ClientElement element)
element - an element.public void removeChild(ClientElement element)
element - a child of this element.public java.lang.String getAttribute(java.lang.String name)
name - the attribute's key.null if
  not found.public ClientElement[] getElementsOfType(java.lang.String tagName)
tagName - the name to use to select elements.