com.wingfoot.soap
Class SOAPElement

java.lang.Object
  |
  +--com.wingfoot.soap.SOAPElement
Direct Known Subclasses:
Envelope, HeaderEntry

public abstract class SOAPElement
extends java.lang.Object

Base class for all SOAP message elements. This class is never instantiated.

Since:
0.90

Constructor Summary
protected SOAPElement()
          Creates a new instance of SOAPElement.
 
Method Summary
protected  void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
          Adds an attribute
protected  void deserialize(java.util.Vector theAttributes)
          Encapsulates attributes in XML form in a Hashtable of name-value pairs.
protected  java.lang.String getAttribute(java.lang.String attributeName)
          Returns a (previously set) SOAPElement attribute
protected  java.util.Hashtable getAttributes()
          Returns all the SOAPElement attributes
protected  void removeAttribute(java.lang.String attributeName)
          Removes an attribute
protected  void serialize(com.wingfoot.soap.XMLWriter xmlwriter)
          Converts the attributes in the Hashtable to attributes of an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPElement

protected SOAPElement()
Creates a new instance of SOAPElement.
Since:
0.90.
Method Detail

addAttribute

protected void addAttribute(java.lang.String attributeName,
                            java.lang.String attributeValue)
Adds an attribute
Parameters:
attributeName - Attribute name
attributeValue - Attribute value
Since:
0.90.

removeAttribute

protected void removeAttribute(java.lang.String attributeName)
Removes an attribute
Parameters:
attributeName - the key to remove from the Hashtable.
Since:
1.00.

getAttribute

protected java.lang.String getAttribute(java.lang.String attributeName)
Returns a (previously set) SOAPElement attribute
Returns:
the value of the attribute.
Since:
0.90.

getAttributes

protected java.util.Hashtable getAttributes()
Returns all the SOAPElement attributes
Returns:
Hashtable of name/value pairs; null if no attribute is set.
Since:
0.90.

serialize

protected void serialize(com.wingfoot.soap.XMLWriter xmlwriter)
Converts the attributes in the Hashtable to attributes of an element. Called by subclasses when serializing iteself.
Parameters:
xmlwriter - instance of XMLWriter to aid in writing XML.
Since:
0.90.

deserialize

protected void deserialize(java.util.Vector theAttributes)
Encapsulates attributes in XML form in a Hashtable of name-value pairs.
Parameters:
theAttributes - Vector, with each element an instance of org.kxml.Attribute.
Since:
0.90.


Copyright(c) Wingfoot Software (www.wingfoot.com). All Rights Reserved.

KXML is a XML parser by Lutris Technologies