IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.sib.wsn
Class GetMessages

java.lang.Object
  extended by com.ibm.websphere.sib.wsn.AnyElemAnyAttrType
      extended by com.ibm.websphere.sib.wsn.GetMessages

public class GetMessages
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
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
 java.lang.Integer getMaxNumber()
          Get the maximum number of message to return
 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

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

public GetMessages(java.lang.Integer maxNumber,
                   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

public java.lang.Integer getMaxNumber()
Get the maximum number of message to return

Returns:
Returns The maximum number of messages

setMaxNumber

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

IBM WebSphere Application ServerTM
Release 8