Class Property
java.lang.Object
com.thoughtworks.go.plugin.api.config.Property
- Direct Known Subclasses:
PackageMaterialProperty,TaskConfigProperty
Deprecated.
Represents single configuration property.
A given property can have set of metadata which can be represented by options.
The valid options are Property.REQUIRED, Property.PART_OF_IDENTITY, Property.SECURE, Property.DISPLAY_NAME and Property.DISPLAY_ORDER
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Option to specify the display name for the propertyDeprecated.Option to specify order of display of property on screenDeprecated.Option to specify if a property is part of group of properties used to uniquely identify materialDeprecated.Option to specify if a property is a mandatory when configuration is capturedDeprecated.Option to specify if a property is a secure property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Deprecated.Gets property key<T> TDeprecated.Gets value for given optionDeprecated.Gets all options of propertygetValue()Deprecated.Gets property value.final <T> PropertyDeprecated.Adds an optionwithDefault(String defaultValue) Deprecated.
-
Field Details
-
REQUIRED
Deprecated.Option to specify if a property is a mandatory when configuration is captured -
PART_OF_IDENTITY
Deprecated.Option to specify if a property is part of group of properties used to uniquely identify material -
SECURE
Deprecated.Option to specify if a property is a secure property. If the property is secure, property value will be always stored (in configuration) and displayed in encrypted text -
DISPLAY_NAME
Deprecated.Option to specify the display name for the property -
DISPLAY_ORDER
Deprecated.Option to specify order of display of property on screen
-
-
Constructor Details
-
Property
Deprecated. -
Property
Deprecated. -
Property
Deprecated.
-
-
Method Details
-
getKey
Deprecated.Gets property key- Returns:
- property key
-
with
Deprecated.Adds an option- Type Parameters:
T- Type of option value- Parameters:
option- Option type to be addedvalue- Option value- Returns:
- current property instance (this)
-
getValue
Deprecated.Gets property value.- Returns:
- property value
-
getOption
Deprecated.Gets value for given option- Type Parameters:
T- type of option- Parameters:
option- for which value needs to fetched- Returns:
- option value
-
getOptions
Deprecated.Gets all options of property- Returns:
- all options of property
-
withDefault
Deprecated.
-