Class GroovyXmlLanguage
- java.lang.Object
-
- org.jenkinsci.plugins.scriptsecurity.scripts.Language
-
- org.jenkinsci.plugins.scriptsecurity.scripts.languages.GroovyXmlLanguage
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public final class GroovyXmlLanguage extends Language
Language for Groovy Template scripts generating XML.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GroovyXmlLanguage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Language
get()
String
getCodeMirrorMode()
A CodeMirror mode string, for purposes of displaying scripts in HTML.String
getDisplayName()
Display name of the language for use in the UI.String
getName()
Unique, permanent, internal identifier of this language.
-
-
-
Method Detail
-
get
public static Language get()
-
getName
@NonNull public String getName()
Description copied from class:Language
Unique, permanent, internal identifier of this language.
-
getDisplayName
@NonNull public String getDisplayName()
Description copied from class:Language
Display name of the language for use in the UI.- Specified by:
getDisplayName
in classLanguage
- Returns:
- a localized name
-
getCodeMirrorMode
public String getCodeMirrorMode()
Description copied from class:Language
A CodeMirror mode string, for purposes of displaying scripts in HTML.- Overrides:
getCodeMirrorMode
in classLanguage
- Returns:
- a mode such as
clike
, or null
-
-