Class ScriptInfo
- java.lang.Object
-
- org.jenkinsci.plugins.scriptler.share.ScriptInfo
-
- All Implemented Interfaces:
NamedResource
public class ScriptInfo extends Object implements NamedResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptInfo.Author
static class
ScriptInfo.Parameter
-
Field Summary
Fields Modifier and Type Field Description protected List<ScriptInfo.Author>
authors
protected String
comment
static Comparator<ScriptInfo>
COMPARATOR_BY_NAME
protected String
core
protected String
name
protected List<String>
parameters
protected String
script
-
Constructor Summary
Constructors Constructor Description ScriptInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthor(ScriptInfo.Author author)
List<ScriptInfo.Author>
getAuthors()
String
getComment()
String
getCore()
String
getId()
String
getName()
List<String>
getParameters()
String
getScript()
void
setAuthors(List<ScriptInfo.Author> authors)
void
setComment(String comment)
void
setCore(String core)
void
setName(String name)
void
setParameters(List<String> parameters)
void
setScript(String script)
String
toString()
-
-
-
Field Detail
-
script
protected String script
-
comment
protected String comment
-
core
protected String core
-
name
protected String name
-
authors
protected List<ScriptInfo.Author> authors
-
COMPARATOR_BY_NAME
public static final Comparator<ScriptInfo> COMPARATOR_BY_NAME
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceNamedResource
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedResource
-
addAuthor
public void addAuthor(ScriptInfo.Author author)
-
setAuthors
public void setAuthors(List<ScriptInfo.Author> authors)
-
getAuthors
public List<ScriptInfo.Author> getAuthors()
-
getScript
public String getScript()
- Returns:
- the script
-
setScript
public void setScript(String script)
- Parameters:
script
- the script to set
-
getComment
public String getComment()
- Returns:
- the comment
-
setComment
public void setComment(String comment)
- Parameters:
comment
- the comment to set
-
getCore
public String getCore()
- Returns:
- the core
-
setCore
public void setCore(String core)
- Parameters:
core
- the core to set
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
-