Enum Class SCMPBodyType

java.lang.Object
java.lang.Enum<SCMPBodyType>
org.serviceconnector.scmp.SCMPBodyType
All Implemented Interfaces:
Serializable, Comparable<SCMPBodyType>, Constable, IReversibleEnum<String,SCMPBodyType>

public enum SCMPBodyType extends Enum<SCMPBodyType> implements IReversibleEnum<String,SCMPBodyType>
The Enum SCMPBodyType. Defines possible body types in SCMP.
Author:
JTraber
  • Enum Constant Details

    • BINARY

      public static final SCMPBodyType BINARY
      binary.
    • TEXT

      public static final SCMPBodyType TEXT
      text.
    • INPUT_STREAM

      public static final SCMPBodyType INPUT_STREAM
      The INPUT_STREAM.
    • UNDEFINED

      public static final SCMPBodyType UNDEFINED
      undefined.
  • Method Details

    • values

      public static SCMPBodyType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SCMPBodyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getBodyType

      public static SCMPBodyType getBodyType(String bodyTypeString)
      Gets the body type by string.
      Parameters:
      bodyTypeString - the body type
      Returns:
      the body type
    • getMimeType

      public String getMimeType()
      Gets the mime type. mime types http://msdn.microsoft.com/en-us/library/ms775147%28VS.85%29.aspx
      Returns:
      the mime type
    • getValue

      public String getValue()
      Description copied from interface: IReversibleEnum
      Return the value/code of the enum constant.
      Specified by:
      getValue in interface IReversibleEnum<String,SCMPBodyType>
      Returns:
      value
    • reverse

      public SCMPBodyType reverse(String key)
      Description copied from interface: IReversibleEnum
      Get the Enum constant by looking up the code in the reverse enum map. *
      Specified by:
      reverse in interface IReversibleEnum<String,SCMPBodyType>
      Parameters:
      key - the code
      Returns:
      V - The enum constant