Class TaskConfig
java.lang.Object
com.thoughtworks.go.plugin.api.config.Configuration
com.thoughtworks.go.plugin.api.task.TaskConfig
- All Implemented Interfaces:
PluginPreference
@Deprecated public class TaskConfig extends Configuration
Deprecated.
Allows the plugin to specify information about the configuration it accepts and expects.
This class, at other times, is used to hold information about the value provided by the
user, for the configuration.
-
Constructor Summary
Constructors Constructor Description TaskConfig()Deprecated. -
Method Summary
Modifier and Type Method Description TaskConfigPropertyaddProperty(java.lang.String propertyName)Deprecated.Adds a property to the configuration of this task.java.lang.StringgetValue(java.lang.String propertyName)Deprecated.Retrieves the value of a property.java.util.List<? extends Property>list()Deprecated.Returns copy of properties listMethods inherited from class com.thoughtworks.go.plugin.api.config.Configuration
add, get, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TaskConfig
public TaskConfig()Deprecated.
-
-
Method Details
-
addProperty
Deprecated.Adds a property to the configuration of this task.- Parameters:
propertyName- Name of the property (or key) in the configuration.- Returns:
- an instance of
TaskConfigProperty
-
getValue
public java.lang.String getValue(java.lang.String propertyName)Deprecated.Retrieves the value of a property.- Parameters:
propertyName- Name of the property (or key) in the configuration.- Returns:
- the value of the specified property, or null if not found.
-
list
Deprecated.Description copied from class:ConfigurationReturns copy of properties list- Overrides:
listin classConfiguration- Returns:
- copy of properties list
-