org.jenkinsci.lib.configprovider.model
Enum ContentType.DefinedType

java.lang.Object
  extended by java.lang.Enum<ContentType.DefinedType>
      extended by org.jenkinsci.lib.configprovider.model.ContentType.DefinedType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContentType.DefinedType>, ContentType
Enclosing interface:
ContentType

public static enum ContentType.DefinedType
extends java.lang.Enum<ContentType.DefinedType>
implements ContentType


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jenkinsci.lib.configprovider.model.ContentType
ContentType.DefinedType
 
Enum Constant Summary
GROOVY
           
HTML
           
XML
           
 
Field Summary
 java.lang.String cmMode
           
 java.lang.String mime
           
 
Method Summary
 java.lang.String getCmMode()
          The CodeMirror mode as defined in Stapler ( org.kohsuke.stapler.codemirror.mode.*).
 java.lang.String getMime()
          Actually the 'mode' attribute for the CodeMirror editor.
static ContentType.DefinedType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContentType.DefinedType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

XML

public static final ContentType.DefinedType XML

HTML

public static final ContentType.DefinedType HTML

GROOVY

public static final ContentType.DefinedType GROOVY
Field Detail

cmMode

public final java.lang.String cmMode

mime

public final java.lang.String mime
Method Detail

values

public static ContentType.DefinedType[] 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 (ContentType.DefinedType c : ContentType.DefinedType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContentType.DefinedType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCmMode

public java.lang.String getCmMode()
Description copied from interface: ContentType
The CodeMirror mode as defined in Stapler ( org.kohsuke.stapler.codemirror.mode.*).
Currently Supported: e.g. used in <textarea name="config.content" codemirror-mode="${contentType.cmMode}" ... />

Specified by:
getCmMode in interface ContentType
Returns:
the CodeMirror mode

getMime

public java.lang.String 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 interface ContentType
Returns:
the mime.


Copyright © 2004-2012. All Rights Reserved.