Package com.ibm.mq.headers.pcf
Class PCFParameter
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.pcf.PCFHeader
com.ibm.mq.headers.pcf.PCFParameter
- Direct Known Subclasses:
MQCFBS,MQCFGR,MQCFIL,MQCFIL64,MQCFIN,MQCFIN64,MQCFSL,MQCFST,PCFFilterParameter
Abstract superclass of PCF parameter headers. All PCF parameter headers know their PCF parameter
id and value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field -
Field Summary
Fields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODING, delegateFields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true when invoked with another PCFParameter instance with the same type, parameter, and value.intgets the version number of the header formatabstract intgets the parameter identifierfinal StringGet the MQ constant name for the parameter id of this PCFParameter instance.abstract Stringgets the parameter value as a Stringabstract ObjectgetValue()gets the parameter valueabstract inthashCode()Returns a hash code value for the objectstatic PCFParameternextParameter(DataInput message) Methods inherited from class com.ibm.mq.headers.internal.Header
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Method Details
-
nextParameter
- Parameters:
message- input from which next parameter is returned.- Returns:
- the next parameter!
- Throws:
MQDataException- if a PCF error occurs.IOException- if there is a problem reading the message content
-
getParameter
public abstract int getParameter()gets the parameter identifier- Returns:
- the parameter identifier
-
getValue
gets the parameter value- Returns:
- the parameter value
-
getStringValue
gets the parameter value as a String- Returns:
- the parameter value as a String
-
getHeaderVersion
public int getHeaderVersion()gets the version number of the header format- Returns:
- the version number of the header format
-
equals
Returns true when invoked with another PCFParameter instance with the same type, parameter, and value. -
hashCode
public abstract int hashCode()Returns a hash code value for the object -
getParameterName
Get the MQ constant name for the parameter id of this PCFParameter instance.- Returns:
- the MQ constant name for the parameter identifier of this PCFParameter instance, or null if the PCFParameter instance represents a parameter that is not recognised.
-