Enum MessageContentType
- java.lang.Object
-
- java.lang.Enum<MessageContentType>
-
- org.uitnet.testing.smartfwk.messaging.MessageContentType
-
- All Implemented Interfaces:
Serializable,Comparable<MessageContentType>
public enum MessageContentType extends Enum<MessageContentType>
- Author:
- Madhav Krishna
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_FILEBOOLEANBYTE_ARRAYDECIMALJSONNUMERICOTHERSTRINGTEXT_FILEXML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()StringtoString()static MessageContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MessageContentTypevalueOf2(String strType)static MessageContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final MessageContentType JSON
-
XML
public static final MessageContentType XML
-
BOOLEAN
public static final MessageContentType BOOLEAN
-
NUMERIC
public static final MessageContentType NUMERIC
-
DECIMAL
public static final MessageContentType DECIMAL
-
STRING
public static final MessageContentType STRING
-
BINARY_FILE
public static final MessageContentType BINARY_FILE
-
TEXT_FILE
public static final MessageContentType TEXT_FILE
-
BYTE_ARRAY
public static final MessageContentType BYTE_ARRAY
-
OTHER
public static final MessageContentType OTHER
-
-
Method Detail
-
values
public static MessageContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageContentType c : MessageContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public String getType()
-
valueOf2
public static MessageContentType valueOf2(String strType)
-
toString
public String toString()
- Overrides:
toStringin classEnum<MessageContentType>
-
-