Class ATXSetting<T>
java.lang.Object
hudson.model.AbstractDescribableImpl<ATXSetting<?>>
de.tracetronic.jenkins.plugins.ecutest.report.atx.installation.ATXSetting<T>
- Type Parameters:
T
- the type of the setting
- All Implemented Interfaces:
Describable<ATXSetting<?>>
,Serializable
,Cloneable
- Direct Known Subclasses:
ATXBooleanSetting
,ATXSecretSetting
,ATXTextSetting
public abstract class ATXSetting<T>
extends AbstractDescribableImpl<ATXSetting<?>>
implements Cloneable, Serializable
Class holding the information of a single ATX setting.
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionATXSetting
(String name, ATXSetting.SettingsGroup group, String descGerman, String descEnglish, T defaultValue) Instantiates a newATXSetting
with associated group, descriptions and default value.ATXSetting
(String name, ATXSetting.SettingsGroup group, T value) Instantiates a newATXSetting
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
The system locale description, defaults to English.getGroup()
getName()
getTitle()
getValue()
boolean
Determines whether this setting is checkbox type.boolean
isSecret()
Determines whether this setting is secret type.protected Object
Used for backward compatibility using deprecated configuration map.void
Sets the current value.static String
toString
(boolean value) Converts a boolean value to Python string equivalent.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
value
The current value of the setting as generic type.
-
-
Constructor Details
-
ATXSetting
Instantiates a newATXSetting
. Settings group, descriptions and default value are synchronized during plugin startup.- Parameters:
name
- the namegroup
- the settings groupvalue
- the current value
-
ATXSetting
public ATXSetting(String name, ATXSetting.SettingsGroup group, String descGerman, String descEnglish, T defaultValue) Instantiates a newATXSetting
with associated group, descriptions and default value.- Parameters:
name
- the namegroup
- the settings groupdescGerman
- the German descriptiondescEnglish
- the English descriptiondefaultValue
- the default value
-
-
Method Details
-
readResolve
Used for backward compatibility using deprecated configuration map.- Returns:
- the value to use after deserialization
- Since:
- 2.7.0
-
clone
-
getName
-
getTitle
-
getGroup
-
getDescGerman
-
getDescEnglish
-
getDescription
The system locale description, defaults to English.- Returns:
- the description
-
getDefaultValue
-
getValue
-
setValue
Sets the current value.- Parameters:
value
- the new current value
-
isCheckbox
public boolean isCheckbox()Determines whether this setting is checkbox type.- Returns:
true
if setting is checkbox type,false
otherwise
-
isSecret
public boolean isSecret()Determines whether this setting is secret type.- Returns:
true
if setting is secret type,false
otherwise
-
toString
Converts a boolean value to Python string equivalent.- Parameters:
value
- the value- Returns:
- the string value
-