com.ibm.jzos

Class WtoMessage

  • java.lang.Object
    • com.ibm.jzos.WtoMessage
  • All Implemented Interfaces:
    WtoConstants


    public class WtoMessage
    extends java.lang.Object
    implements WtoConstants
    A simple data object/bean for holding a WTO message and its parameters. If the supplied message contains line-separator characters, the message will be broken into multiple WTO lines at the separators. If a single line is longer than the maximum WTO line length, it will also be broken into multiple WTO lines.

    See: WtoConstants for definitions of route and descriptor codes and flags.

    • Constructor Detail

      • WtoMessage

        public WtoMessage(java.lang.String message)
        Construct an instance with a given WTO message
      • WtoMessage

        public WtoMessage(java.lang.String message,
                  int routcdeBitMask,
                  int descrBitMask)
        Construct an instance with a given WTO message, routecode and descripter mask
    • Method Detail

      • getDescrs

        public int[] getDescrs()
        Answer an integer array of descriptor codes.
        See Also:
        WtoConstants
      • setDescrs

        public void setDescrs(int descrsBitMask)
        Set the descriptor codes using a bit mask
        See Also:
        WtoConstants
      • setDescrs

        public void setDescrs(int[] descrs)
        Set the descriptor codes using an int array
        See Also:
        WtoConstants
      • getMessage

        public java.lang.String getMessage()
        Answer the message string
      • getRoutcdes

        public int[] getRoutcdes()
        Answer the route codes
        See Also:
        WtoConstants
      • setRoutcdes

        public void setRoutcdes(int routcdesBitMask)
        Set the route codes using a integer bit mask.
        See Also:
        WtoConstants
      • setRoutcdes

        public void setRoutcdes(int[] routcdes)
        Set the route codes using a integer array.
        See Also:
        WtoConstants
      • getToken

        public int getToken()
        Answer the int token used to find this message for deletion
      • setToken

        public void setToken(int token)
        Set the int token used to find this message for deletion
      • getFlags

        public long getFlags()
        Answer the flags bit mask used to issue the message
        See Also:
        WtoConstants
      • setFlags

        public void setFlags(long flags)
        Answer the flags bit mask used to issue the message
        See Also:
        WtoConstants
© Copyright IBM Corporation 2005, 2014.