com.ibm.websphere.sib.wsn

Class AnyElemAnyAttrType

  1. java.lang.Object
  2. extended bycom.ibm.websphere.sib.wsn.AnyElemAnyAttrType
Direct known subclasses:
CreatePullPoint, CreatePullPointResponse, DestroyPullPoint, DestroyPullPointResponse, DestroyRegistration, DestroyRegistrationResponse, GetMessages, GetMessagesResponse

  1. public abstract class AnyElemAnyAttrType
  2. 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

Modifier and Type Field and Description
  1. protected
  2. java.util.Map
attributes
The xsd:anyAttribute attributes
  1. protected
  2. javax.xml.soap.SOAPElement[]
elements
The xsd:any elements

Constructor Summary

Constructor and Description
AnyElemAnyAttrType()

Method Summary

Modifier and Type Method and Description
  1. void
addAttribute(javax.xml.soap.Name name,java.lang.String value)
Add an attribute
  1. java.util.Iterator
getAttributes()
Get an iterator over the names of all the attributes which have been set
  1. java.lang.String
getAttributeValue(javax.xml.soap.Name name)
  1. javax.xml.soap.SOAPElement[]
getElements()
Get the user defined elements which have been set.
  1. 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

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

attributes

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

Constructor Detail

AnyElemAnyAttrType

  1. public AnyElemAnyAttrType()

Method Detail

getElements

  1. 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

  1. 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

  1. public void addAttribute(javax.xml.soap.Name name,
  2. java.lang.String value)
  3. 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

  1. 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

  1. 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.