Enum PrismLanguage
- java.lang.Object
-
- java.lang.Enum<PrismLanguage>
-
- org.apache.causeway.viewer.commons.prism.PrismLanguage
-
- All Implemented Interfaces:
Serializable,Comparable<PrismLanguage>
public enum PrismLanguage extends Enum<PrismLanguage>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCIIDOCCLIKECSSJAVAJAVADOCJAVADOCLIKEJAVASCRIPTJSONMARKUPPROPERTIESXML_DOCYAML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringjsFile()static List<PrismLanguage>mostCommon()static PrismLanguagevalueOf(String name)Returns the enum constant of this type with the specified name.static PrismLanguage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MARKUP
public static final PrismLanguage MARKUP
-
CSS
public static final PrismLanguage CSS
-
CLIKE
public static final PrismLanguage CLIKE
-
JAVA
public static final PrismLanguage JAVA
-
JAVASCRIPT
public static final PrismLanguage JAVASCRIPT
-
ASCIIDOC
public static final PrismLanguage ASCIIDOC
-
JAVADOCLIKE
public static final PrismLanguage JAVADOCLIKE
-
JAVADOC
public static final PrismLanguage JAVADOC
-
JSON
public static final PrismLanguage JSON
-
PROPERTIES
public static final PrismLanguage PROPERTIES
-
XML_DOC
public static final PrismLanguage XML_DOC
-
YAML
public static final PrismLanguage YAML
-
-
Method Detail
-
values
public static PrismLanguage[] 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 (PrismLanguage c : PrismLanguage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrismLanguage 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
-
mostCommon
public static List<PrismLanguage> mostCommon()
-
-