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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionATXSetting(String name, ATXSetting.SettingsGroup group, String descGerman, String descEnglish, T defaultValue) Instantiates a newATXSettingwith 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()booleanDetermines whether this setting is checkbox type.booleanisSecret()Determines whether this setting is secret type.protected ObjectUsed for backward compatibility using deprecated configuration map.voidSets the current value.static StringtoString(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 newATXSettingwith 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:
trueif setting is checkbox type,falseotherwise
-
isSecret
public boolean isSecret()Determines whether this setting is secret type.- Returns:
trueif setting is secret type,falseotherwise
-
toString
Converts a boolean value to Python string equivalent.- Parameters:
value- the value- Returns:
- the string value
-