com.ibm.websphere.sib.wsn
Class AnyElemAnyAttrType
- java.lang.Object
-
- 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
Fields Modifier and Type Field and Description protected java.util.Map
attributes
The xsd:anyAttribute attributesprotected javax.xml.soap.SOAPElement[]
elements
The xsd:any elements
-
Constructor Summary
Constructors Constructor and Description AnyElemAnyAttrType()
-
Method Summary
Methods Modifier and Type Method and Description void
addAttribute(javax.xml.soap.Name name, java.lang.String value)
Add an attributejava.util.Iterator
getAttributes()
Get an iterator over the names of all the attributes which have been setjava.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.
-
-
-
Field Detail
-
elements
protected javax.xml.soap.SOAPElement[] elements
The xsd:any elements
-
attributes
protected java.util.Map attributes
The xsd:anyAttribute attributes
-
-
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 aName
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.
-
-