Enum FormatEnum
- java.lang.Object
-
- java.lang.Enum<FormatEnum>
-
- org.symphonyoss.symphony.messageml.elements.FormatEnum
-
- All Implemented Interfaces:
Serializable,Comparable<FormatEnum>
public enum FormatEnum extends Enum<FormatEnum>
For elements which have a different representaion in MessageML and PresentationML ("convenience tags"), this enum is used to determine in which format the element was provided.- Since:
- 4/20/17
- Author:
- lukasz
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGEMLPRESENTATIONML
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormatEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static FormatEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGEML
public static final FormatEnum MESSAGEML
-
PRESENTATIONML
public static final FormatEnum PRESENTATIONML
-
-
Method Detail
-
values
public static FormatEnum[] 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 (FormatEnum c : FormatEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormatEnum 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
-
-