org.jvnet.hudson.plugins.scriptler.config
Class Script
java.lang.Object
org.jvnet.hudson.plugins.scriptler.config.Script
- All Implemented Interfaces:
- java.lang.Comparable<Script>, NamedResource
public class Script
- extends java.lang.Object
- implements java.lang.Comparable<Script>, NamedResource
|
Field Summary |
boolean |
available
|
java.lang.String |
comment
|
java.lang.String |
name
|
java.lang.String |
script
script is only transient, because it will not be saved in the xml but on
the file system. |
|
Constructor Summary |
Script(java.lang.String name,
java.lang.String comment)
|
Script(java.lang.String name,
java.lang.String comment,
boolean available)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
name
public final java.lang.String name
comment
public final java.lang.String comment
available
public final boolean available
script
public transient java.lang.String script
- script is only transient, because it will not be saved in the xml but on
the file system. Therefore it has to be materialized before usage!
Script
@DataBoundConstructor
public Script(java.lang.String name,
java.lang.String comment)
Script
public Script(java.lang.String name,
java.lang.String comment,
boolean available)
getName
public java.lang.String getName()
- Specified by:
getName in interface NamedResource
setScript
public void setScript(java.lang.String script)
compareTo
public int compareTo(Script o)
- Specified by:
compareTo in interface java.lang.Comparable<Script>
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2010. All Rights Reserved.