Class Property
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.config.Property
-
- Direct Known Subclasses:
PackageMaterialProperty,TaskConfigProperty
@Deprecated public class Property extends java.lang.ObjectDeprecated.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
Fields Modifier and Type Field Description static Option<java.lang.String>DISPLAY_NAMEDeprecated.Option to specify the display name for the propertystatic Option<java.lang.Integer>DISPLAY_ORDERDeprecated.Option to specify order of display of property on screenstatic Option<java.lang.Boolean>PART_OF_IDENTITYDeprecated.Option to specify if a property is part of group of properties used to uniquely identify materialstatic Option<java.lang.Boolean>REQUIREDDeprecated.Option to specify if a property is a mandatory when configuration is capturedstatic Option<java.lang.Boolean>SECUREDeprecated.Option to specify if a property is a secure property.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetKey()Deprecated.Gets property key<T> TgetOption(Option<T> option)Deprecated.Gets value for given optionOptionsgetOptions()Deprecated.Gets all options of propertyjava.lang.StringgetValue()Deprecated.Gets property value.<T> Propertywith(Option<T> option, T value)Deprecated.Adds an optionPropertywithDefault(java.lang.String defaultValue)Deprecated.
-
-
-
Field Detail
-
REQUIRED
public static final Option<java.lang.Boolean> REQUIRED
Deprecated.Option to specify if a property is a mandatory when configuration is captured
-
PART_OF_IDENTITY
public static final Option<java.lang.Boolean> PART_OF_IDENTITY
Deprecated.Option to specify if a property is part of group of properties used to uniquely identify material
-
SECURE
public static final Option<java.lang.Boolean> 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
public static final Option<java.lang.String> DISPLAY_NAME
Deprecated.Option to specify the display name for the property
-
DISPLAY_ORDER
public static final Option<java.lang.Integer> DISPLAY_ORDER
Deprecated.Option to specify order of display of property on screen
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Deprecated.Gets property key- Returns:
- property key
-
with
public final <T> Property with(Option<T> option, T value)
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
public java.lang.String getValue()
Deprecated.Gets property value.- Returns:
- property value
-
getOption
public <T> T getOption(Option<T> option)
Deprecated.Gets value for given option- Type Parameters:
T- type of option- Parameters:
option- for which value needs to fetched- Returns:
- option value
-
getOptions
public Options getOptions()
Deprecated.Gets all options of property- Returns:
- all options of property
-
withDefault
public Property withDefault(java.lang.String defaultValue)
Deprecated.
-
-