IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.sib.wsn
Class AnyElemAnyAttrType

java.lang.Object
  extended by com.ibm.websphere.sib.wsn.AnyElemAnyAttrType
Direct Known Subclasses:
CreatePullPoint, CreatePullPointResponse, DestroyPullPoint, DestroyPullPointResponse, DestroyRegistration, DestroyRegistrationResponse, GetMessages, GetMessagesResponse

public abstract class AnyElemAnyAttrType
extends java.lang.Object

An abstract class extended by those classes which allow the user to specify zero or more custom elements or custom attributes. This is analogous to a schema type or element which defines a sequence containing an unbounded occuring xsd:any element and xsd:anyAttribute


Field Summary
protected  java.util.Map attributes
          The xsd:anyAttribute attributes
protected  javax.xml.soap.SOAPElement[] elements
          The xsd:any elements
 
Constructor Summary
AnyElemAnyAttrType()
           
 
Method Summary
 void addAttribute(javax.xml.soap.Name name, java.lang.String value)
          Add an attribute
 java.util.Iterator getAttributes()
          Get an iterator over the names of all the attributes which have been set
 java.lang.String getAttributeValue(javax.xml.soap.Name name)
           
 javax.xml.soap.SOAPElement[] getElements()
          Get the user defined elements which have been set.
 void setElements(javax.xml.soap.SOAPElement[] anyElements)
          Set the user defined elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected javax.xml.soap.SOAPElement[] elements
The xsd:any elements


attributes

protected java.util.Map attributes
The xsd:anyAttribute attributes

Constructor Detail

AnyElemAnyAttrType

public AnyElemAnyAttrType()
Method Detail

getElements

public javax.xml.soap.SOAPElement[] getElements()
Get the user defined elements which have been set.

Returns:
Returns an array of the user defined elements or null if no elements have been set.

setElements

public void setElements(javax.xml.soap.SOAPElement[] anyElements)
Set the user defined elements. Setting this array overwrites any previously set array.

Parameters:
anyElements - The user defined elements to set.

addAttribute

public void addAttribute(javax.xml.soap.Name name,
                         java.lang.String value)
                  throws java.lang.Exception
Add an attribute

Parameters:
name - The name of the attribute in the form of a Name
value - The value of the attribute
Throws:
java.lang.Exception

getAttributes

public java.util.Iterator getAttributes()
Get an iterator over the names of all the attributes which have been set

Returns:
The iterator. Each iterated value will be a Name

getAttributeValue

public java.lang.String getAttributeValue(javax.xml.soap.Name name)
Parameters:
name - The name of the attribute
Returns:
The value of the attribute or null if the attribute has not been set.

IBM WebSphere Application ServerTM
Release 7