com.ibm.websphere.sib.wsn

Class GetMessages

  1. java.lang.Object
  2. extended bycom.ibm.websphere.sib.wsn.AnyElemAnyAttrType
  3. extended bycom.ibm.websphere.sib.wsn.GetMessages

  1. public class GetMessages
  2. extends AnyElemAnyAttrType
A class which represents the GetMessages element in the WS-Notification Base Notification schema. This class allows custom elements and attributes to be set.
See Also:
AnyElemAnyAttrType

Field Summary

Fields inherited from class com.ibm.websphere.sib.wsn.AnyElemAnyAttrType
attributes, elements

Constructor Summary

Constructor and Description
GetMessages(java.lang.Integer maxNumber)
Create an instance without user defined elements
GetMessages(java.lang.Integer maxNumber,javax.xml.soap.SOAPElement[] elements)
Create an instance with user defined elements

Method Summary

Modifier and Type Method and Description
  1. java.lang.Integer
getMaxNumber()
Get the maximum number of message to return
  1. void
setMaxNumber(java.lang.Integer maxNumber)
Set the maximum number of elements to return.
Methods inherited from class com.ibm.websphere.sib.wsn.AnyElemAnyAttrType
addAttribute, getAttributes, getAttributeValue, getElements, setElements
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

GetMessages

  1. public GetMessages(java.lang.Integer maxNumber)
Create an instance without user defined elements
Parameters:
maxNumber - The maxiumum number of messages to return. Non-null values must be positive integers. A value of null indicates all available messages.
Throws:
java.lang.IllegalArgumentException - If an negative value for the maximum number is specified

GetMessages

  1. public GetMessages(java.lang.Integer maxNumber,
  2. javax.xml.soap.SOAPElement[] elements)
Create an instance with user defined elements
Parameters:
maxNumber - The maxiumum number of messages to return. Non-null values must be positive integers. A value of null indicates all available messages.
Throws:
java.lang.IllegalArgumentException - If an negative value for the maximum number is specified

Method Detail

getMaxNumber

  1. public java.lang.Integer getMaxNumber( )
Get the maximum number of message to return
Returns:
Returns The maximum number of messages

setMaxNumber

  1. public void setMaxNumber(java.lang.Integer maxNumber)
Set the maximum number of elements to return.
Parameters:
maxNumber - The maximum number of messages. Non-null values must be positive integers. A value of null indicates all available messages.
Throws:
java.lang.IllegalArgumentException - If an negative value for the maximum number is specified