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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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