net.rim.device.api.io.parser.soap
Class SOAPElementContainer

java.lang.Object
  extended by net.rim.device.api.io.parser.soap.SOAPElement
      extended by net.rim.device.api.io.parser.soap.SOAPElementContainer
Direct Known Subclasses:
SOAPBody, SOAPHeader

public class SOAPElementContainer
extends SOAPElement

Container for SOAPElement objects.

Since:
BlackBerry API 6.0.0

Method Summary
 void addChild(SOAPElement soapElement)
          Appends a child element to this SOAPElement.
 SOAPPrimitive addDecimal(String name, Integer value)
          Adds a new Integer tag.
 SOAPPrimitive addInt(String name, int value)
          Adds a new int tag.
 SOAPPrimitive addLong(String name, Long value)
          Adds a new Long tag.
 SOAPPrimitive addSOAPPrimitive(String name, Object value, String type)
          Adds a SOAPPrimitive child element to this SOAPElement.
 SOAPPrimitive addString(String name, String value)
          Adds a new String tag.
 SOAPElement getChildAt(int index)
          Returns the child SOAPElement at a given index, or null if there are no children.
 Vector getChildren()
          Returns the children of this SOAPElement.
 
Methods inherited from class net.rim.device.api.io.parser.soap.SOAPElement
getAttribute, getAttributes, getName, getNamespace, getType, putAttribute, setAttributes, setName, setNamespace, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

addChild

public void addChild(SOAPElement soapElement)
Appends a child element to this SOAPElement.

Parameters:
soapElement - Child to add
Since:
BlackBerry API 6.0.0

getChildren

public Vector getChildren()
Returns the children of this SOAPElement.

Returns:
Vector containing children of this SOAP element, or null if there are no children.
Since:
BlackBerry API 6.0.0

getChildAt

public SOAPElement getChildAt(int index)
Returns the child SOAPElement at a given index, or null if there are no children.

Parameters:
index - The location of the child element.
Returns:
The SOAPElement at the index specified.
Throws:
ArrayIndexOutOfBoundsException - If index is less than 0, or index greater than or equal to the number of children.
Since:
BlackBerry API 6.0.0

addSOAPPrimitive

public SOAPPrimitive addSOAPPrimitive(String name,
                                      Object value,
                                      String type)
Adds a SOAPPrimitive child element to this SOAPElement.

Parameters:
name - Name of the tag.
value - Value of the tag.
type - Type of data.
Returns:
A SOAPPrimitive instance.
Since:
BlackBerry API 6.0.0

addDecimal

public SOAPPrimitive addDecimal(String name,
                                Integer value)
Adds a new Integer tag.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
A SOAPPrimitive instance.
Since:
BlackBerry API 6.0.0

addLong

public SOAPPrimitive addLong(String name,
                             Long value)
Adds a new Long tag.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
A SOAPPrimitive instance.
Since:
BlackBerry API 6.0.0

addInt

public SOAPPrimitive addInt(String name,
                            int value)
Adds a new int tag.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
A SOAPPrimitive instance.
Since:
BlackBerry API 6.0.0

addString

public SOAPPrimitive addString(String name,
                               String value)
Adds a new String tag.

Parameters:
name - The name of the tag.
value - The value of the tag.
Returns:
A SOAPPrimitive instance.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.