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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object obj)
Returns true when invoked with another PCFParameter instance with the same type, parameter, and value.int
getHeaderVersion()
gets the version number of the header formatabstract int
getParameter()
gets the parameter identifierjava.lang.String
getParameterName()
Get the MQ constant name for the parameter id of this PCFParameter instance.abstract java.lang.String
getStringValue()
gets the parameter value as a Stringabstract java.lang.Object
getValue()
gets the parameter valueabstract int
hashCode()
Returns a hash code value for the objectstatic PCFParameter
nextParameter(java.io.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, write
-
-
-
-
Method Detail
-
nextParameter
public static PCFParameter nextParameter(java.io.DataInput message) throws MQDataException, java.io.IOException
- Parameters:
message
-- Returns:
- the next parameter!
- Throws:
MQDataException
java.io.IOException
-
getParameter
public abstract int getParameter()
gets the parameter identifier- Returns:
- the parameter identifier
-
getValue
public abstract java.lang.Object getValue()
gets the parameter value- Returns:
- the parameter value
-
getStringValue
public abstract java.lang.String 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
public boolean equals(java.lang.Object obj)
Returns true when invoked with another PCFParameter instance with the same type, parameter, and value.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
-- Returns:
- true of the object equals this one
-
hashCode
public abstract int hashCode()
Returns a hash code value for the object- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a hash code value for this object.
-
getParameterName
public final java.lang.String 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.
-
-