org.jenkinsci.lib.configprovider.model
Interface ContentType

All Known Implementing Classes:
ContentType.DefinedType

public interface ContentType

Describes the content of a Config in a more technical way. In fact it provides information to determine how the content should be rendered in a editor (e.g. CodeMirror).

Author:
domi

Nested Class Summary
static class ContentType.DefinedType
           
 
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.
 

Method Detail

getCmMode

java.lang.String getCmMode()
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}" ... />

Returns:
the CodeMirror mode

getMime

java.lang.String getMime()
Actually the 'mode' attribute for the CodeMirror editor. As in: <textarea name="config.content" codemirror-config="mode:'${contentType.mime}',lineNumbers: true" ... />

Returns:
the mime.


Copyright © 2004-2012. All Rights Reserved.