com.ibm.websphere.sib.wsn
Class GetMessages
- java.lang.Object
-
- com.ibm.websphere.sib.wsn.AnyElemAnyAttrType
-
- 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
Constructors Constructor and Description GetMessages(java.lang.Integer maxNumber)
Create an instance without user defined elementsGetMessages(java.lang.Integer maxNumber, javax.xml.soap.SOAPElement[] elements)
Create an instance with user defined elements
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Integer
getMaxNumber()
Get the maximum number of message to returnvoid
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
-
-
-
-
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
-
-