|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mq.pcf.PCFHeader | +--com.ibm.mq.pcf.PCFParameter | +--com.ibm.mq.pcf.MQCFIN
A class encapsulating the MQCFIN (PCF single integer parameter) structure.
New in version 2.0:
Field Summary | |
static java.lang.String |
copyright
|
int |
parameter
|
static int |
strucLength
|
static int |
type
|
int |
value
|
Constructor Summary | |
MQCFIN()
Default constructor. |
|
MQCFIN(int parameter,
int value)
Initializes an MQCFIN header with the specified values. |
|
MQCFIN(com.ibm.mq.MQMessage message)
Initializes a new MQCFIN instance by reading from an MQMessage. |
Method Summary | |
int |
getParameter()
Returns the parameter identifier of this PCF parameter structure. |
java.lang.String |
getStringValue()
Returns a string representing the integer value if this PCF parameter structure. |
int |
getType()
Returns the type identifier of this PCF parameter structure. |
java.lang.Object |
getValue()
Returns the value of this PCF parameter structure. |
void |
initialize(com.ibm.mq.MQMessage message)
Initializes the contents of an MQCFIN by reading from an MQMessage. |
void |
setValue(int value)
Sets the MQCFIN integer value in the value field. |
void |
setValue(java.lang.Integer value)
Sets the MQCFIN integer value in the value field. |
void |
setValue(java.lang.Object value)
Sets the value of this PCF parameter structure. |
int |
size()
Returns the size in bytes of this MQCFIN (this will always be MQCFIN_STRUC_LENGTH). |
java.lang.String |
toString()
|
int |
write(com.ibm.mq.MQMessage message)
Writes the contents of this MQCFIN to an MQMessage. |
static int |
write(com.ibm.mq.MQMessage message,
int parameter,
int value)
A convenience method for writing an MQCFIN header structure with the specified values to an MQMessage. |
Methods inherited from class com.ibm.mq.pcf.PCFParameter |
nextParameter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String copyright
public static final int type
public static final int strucLength
public int parameter
public int value
Constructor Detail |
public MQCFIN()
public MQCFIN(int parameter, int value)
parameter
- the parameter identifiervalue
- the integer parameter valueCMQCFC
public MQCFIN(com.ibm.mq.MQMessage message) throws com.ibm.mq.MQException, java.io.IOException
message
- the message to read fromcom.ibm.mq.MQException
- if the message contents do not yield a valid
MQCFIN structurejava.io.IOException
- if there is a problem reading the messageMethod Detail |
public static int write(com.ibm.mq.MQMessage message, int parameter, int value) throws java.io.IOException
message
- the message to write toparameter
- the parameter identifiervalue
- the integer parameter valuejava.io.IOException
- if there is a problem writing the messageCMQCFC
public void initialize(com.ibm.mq.MQMessage message) throws com.ibm.mq.MQException, java.io.IOException
initialize
in class PCFHeader
message
- the message to read fromcom.ibm.mq.MQException
- if the message contents do not yield a valid
MQCFIN structure:
java.io.IOException
- if there is a problem reading the messagepublic int write(com.ibm.mq.MQMessage message) throws java.io.IOException
write
in class PCFHeader
message
- the message to write tojava.io.IOException
- if there is a problem writing the messagepublic int size()
size
in class PCFHeader
public int getType()
getType
in class PCFParameter
public int getParameter()
getParameter
in class PCFParameter
public java.lang.Object getValue()
getValue
in class PCFParameter
public java.lang.String getStringValue()
getStringValue
in class PCFParameter
public void setValue(java.lang.Object value) throws java.lang.ClassCastException
setValue
in class PCFParameter
public void setValue(int value)
value
- the integer value as an integer primitivepublic void setValue(java.lang.Integer value)
value
- the integer value as an Integer objectpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |