Package org.serviceconnector.scmp
Enum Class SCMPBodyType
- All Implemented Interfaces:
Serializable,Comparable<SCMPBodyType>,Constable,IReversibleEnum<String,SCMPBodyType>
The Enum SCMPBodyType. Defines possible body types in SCMP.
- Author:
- JTraber
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionbinary.The INPUT_STREAM.text.undefined. -
Method Summary
Modifier and TypeMethodDescriptionstatic SCMPBodyTypegetBodyType(String bodyTypeString) Gets the body type by string.Gets the mime type. mime types http://msdn.microsoft.com/en-us/library/ms775147%28VS.85%29.aspxgetValue()Return the value/code of the enum constant.Get theEnumconstant by looking up the code in the reverse enum mapstatic SCMPBodyTypeReturns the enum constant of this class with the specified name.static SCMPBodyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BINARY
binary. -
TEXT
text. -
INPUT_STREAM
The INPUT_STREAM. -
UNDEFINED
undefined.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getBodyType
Gets the body type by string.- Parameters:
bodyTypeString- the body type- Returns:
- the body type
-
getMimeType
Gets the mime type. mime types http://msdn.microsoft.com/en-us/library/ms775147%28VS.85%29.aspx- Returns:
- the mime type
-
getValue
Description copied from interface:IReversibleEnumReturn the value/code of the enum constant.- Specified by:
getValuein interfaceIReversibleEnum<String,SCMPBodyType> - Returns:
- value
-
reverse
Description copied from interface:IReversibleEnumGet theEnumconstant by looking up the code in the reverse enum map. *- Specified by:
reversein interfaceIReversibleEnum<String,SCMPBodyType> - Parameters:
key- the code- Returns:
- V - The enum constant
-