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

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

public class SOAPElement
extends Object

Base class for all elements in the SOAP object model.

Since:
BlackBerry API 6.0.0

Method Summary
 String getAttribute(String name)
          Returns the value of an attribute from this SOAP element, or null if the attribute is not present.
 Hashtable getAttributes()
          Returns the attributes associated with this tag.
 String getName()
          Returns the name of the tag.
 String getNamespace()
          Returns the namespace for this tag.
 String getType()
          Returns the type of this tag.
 void putAttribute(String name, String value)
          Sets a single key-value pair into the attribute Hashtable for this SOAP element.
 void setAttributes(Hashtable attributes)
          Sets the attributes Hashtable associated with this element.
 void setName(String name)
          Updates the name of the tag.
 void setNamespace(String namespace)
          Updates the namespace for this tag.
 void setType(String type)
          Sets the type of the tag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Method Detail

getName

public String getName()
Returns the name of the tag.

Returns:
Name of the tag.
Since:
BlackBerry API 6.0.0

setName

public void setName(String name)
Updates the name of the tag.

Parameters:
name - Name of the tag.
Since:
BlackBerry API 6.0.0

getNamespace

public String getNamespace()
Returns the namespace for this tag.

Returns:
Namespace for this tag.
Since:
BlackBerry API 6.0.0

setNamespace

public void setNamespace(String namespace)
Updates the namespace for this tag.

Parameters:
namespace - The namespace for this tag.
Since:
BlackBerry API 6.0.0

getType

public String getType()
Returns the type of this tag.

Returns:
Type of this tag.
Since:
BlackBerry API 6.0.0

setType

public void setType(String type)
Sets the type of the tag.

Parameters:
type - Type of the tag.
Since:
BlackBerry API 6.0.0

getAttributes

public Hashtable getAttributes()
Returns the attributes associated with this tag.

Returns:
Hashtable containing the attributes associated with this tag.
Since:
BlackBerry API 6.0.0

setAttributes

public void setAttributes(Hashtable attributes)
Sets the attributes Hashtable associated with this element.

Parameters:
attributes - A Hashtable of attributes.
Since:
BlackBerry API 6.0.0

putAttribute

public void putAttribute(String name,
                         String value)
Sets a single key-value pair into the attribute Hashtable for this SOAP element.

Parameters:
name - Name of the attribute.
value - Value of the attribute.
Since:
BlackBerry API 6.0.0

getAttribute

public String getAttribute(String name)
Returns the value of an attribute from this SOAP element, or null if the attribute is not present.

Parameters:
name - Name of attribute to return.
Returns:
The value of the attribute; or null if the attribute is not present.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal