public static JmsBodyType getBodyType(String format) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getBodyType");

    JmsBodyType result = null;
    if (format.equals(SIApiConstants.JMS_FORMAT_BYTES))
      result = BYTES;
    else if (format.equals(SIApiConstants.JMS_FORMAT_TEXT))
      result = TEXT;
    else if (format.equals(SIApiConstants.JMS_FORMAT_OBJECT))
      result = OBJECT;
    else if (format.equals(SIApiConstants.JMS_FORMAT_STREAM))
      result = STREAM;
    else if (format.equals(SIApiConstants.JMS_FORMAT_MAP))
      result = MAP;
    else if (format.equals(SIApiConstants.JMS_FORMAT))
      result = NULL;

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getBodyType");
    return result;
  }
public static JmsBodyType getBodyType ( String format ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getBodyType" ) ; JmsBodyType result = null ; if ( format . equals ( SIApiConstants . JMS_FORMAT_BYTES ) ) result = BYTES ; else if ( format . equals ( SIApiConstants . JMS_FORMAT_TEXT ) ) result = TEXT ; else if ( format . equals ( SIApiConstants . JMS_FORMAT_OBJECT ) ) result = OBJECT ; else if ( format . equals ( SIApiConstants . JMS_FORMAT_STREAM ) ) result = STREAM ; else if ( format . equals ( SIApiConstants . JMS_FORMAT_MAP ) ) result = MAP ; else if ( format . equals ( SIApiConstants . JMS_FORMAT ) ) result = NULL ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getBodyType" ) ; return result ; }
Return the appropriate JMSBodyType for a specific format string

@param format  A String corresponding to the SDO format of a JMS Message

@return JmsBodyType The JmsBodyType singleton which maps to the given format string