public static enum CmsCodeMirror.CodeMirrorLanguage extends java.lang.Enum<CmsCodeMirror.CodeMirrorLanguage>
| Enum Constant and Description |
|---|
CSS
CSS.
|
HTML
HTML.
|
JAVA
JAVA.
|
JAVASCRIPT
JavaScript.
|
JSP
JSP.
|
XML
XML.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLanguageName()
Returns the language name.
|
boolean |
isSupportedFileType(java.lang.String fileNameSuffix)
Returns whether the given file ending is a supported file type.
|
java.lang.String |
toString() |
static CmsCodeMirror.CodeMirrorLanguage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CmsCodeMirror.CodeMirrorLanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmsCodeMirror.CodeMirrorLanguage CSS
public static final CmsCodeMirror.CodeMirrorLanguage HTML
public static final CmsCodeMirror.CodeMirrorLanguage JAVA
public static final CmsCodeMirror.CodeMirrorLanguage JAVASCRIPT
public static final CmsCodeMirror.CodeMirrorLanguage JSP
public static final CmsCodeMirror.CodeMirrorLanguage XML
public static CmsCodeMirror.CodeMirrorLanguage[] values()
for (CmsCodeMirror.CodeMirrorLanguage c : CmsCodeMirror.CodeMirrorLanguage.values()) System.out.println(c);
public static CmsCodeMirror.CodeMirrorLanguage valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getLanguageName()
public boolean isSupportedFileType(java.lang.String fileNameSuffix)
fileNameSuffix - the file name suffixtrue in case the file type is supportedpublic java.lang.String toString()
toString in class java.lang.Enum<CmsCodeMirror.CodeMirrorLanguage>Enum.toString()