Enum Class ContentType.DefinedType
java.lang.Object
java.lang.Enum<ContentType.DefinedType>
org.jenkinsci.lib.configprovider.model.ContentType.DefinedType
- All Implemented Interfaces:
Serializable
,Comparable<ContentType.DefinedType>
,Constable
,ContentType
- Enclosing interface:
- ContentType
public static enum ContentType.DefinedType
extends Enum<ContentType.DefinedType>
implements ContentType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.jenkinsci.lib.configprovider.model.ContentType
ContentType.DefinedType
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe CodeMirror mode as defined in Stapler (org.kohsuke.stapler.codemirror.mode.*
).getMime()
Actually the 'mode' attribute for the CodeMirror editor.static ContentType.DefinedType
Returns the enum constant of this class with the specified name.static ContentType.DefinedType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XML
-
HTML
-
GROOVY
-
PROPERTIES
-
SHELL
-
-
Field Details
-
cmMode
-
mime
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCmMode
Description copied from interface:ContentType
The CodeMirror mode as defined in Stapler (org.kohsuke.stapler.codemirror.mode.*
).
Currently Supported:- clike
- css
- diff
- haskell
- htmlmixed
- javascript
- lua
- php
- plsql
- python
- rst
- smaltalk
- stex
- xml
<textarea name="config.content" codemirror-mode="${contentType.cmMode}" ... />
- Specified by:
getCmMode
in interfaceContentType
- Returns:
- the CodeMirror mode
-
getMime
Description copied from interface:ContentType
Actually the 'mode' attribute for the CodeMirror editor. As in:<textarea name="config.content" codemirror-config="mode:'${contentType.mime}',lineNumbers: true" ... />
- Specified by:
getMime
in interfaceContentType
- Returns:
- the mime.
-