Package com.aoindustries.util.i18n
Enum MarkupType
- java.lang.Object
-
- java.lang.Enum<MarkupType>
-
- com.aoindustries.util.i18n.MarkupType
-
- All Implemented Interfaces:
Serializable,Comparable<MarkupType>
public enum MarkupType extends Enum<MarkupType>
The different type of markups allowed for translation integration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarkupTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MarkupType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MarkupType NONE
-
XHTML
public static final MarkupType XHTML
-
TEXT
public static final MarkupType TEXT
-
JAVASCRIPT
public static final MarkupType JAVASCRIPT
-
SH
public static final MarkupType SH
-
PSQL
public static final MarkupType PSQL
-
MYSQL
public static final MarkupType MYSQL
-
CSS
public static final MarkupType CSS
-
-
Method Detail
-
values
public static MarkupType[] 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 (MarkupType c : MarkupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkupType 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
-
-