@Deprecated
public class Property
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Option<java.lang.String> |
DISPLAY_NAME
Deprecated.
Option to specify the display name for the property
|
static Option<java.lang.Integer> |
DISPLAY_ORDER
Deprecated.
Option to specify order of display of property on screen
|
static 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
|
static Option<java.lang.Boolean> |
REQUIRED
Deprecated.
Option to specify if a property is a mandatory when configuration is captured
|
static Option<java.lang.Boolean> |
SECURE
Deprecated.
Option to specify if a property is a secure property.
|
| Modifier | Constructor and Description |
|---|---|
|
Property(java.lang.String key)
Deprecated.
|
protected |
Property(java.lang.String key,
java.lang.String value)
Deprecated.
|
|
Property(java.lang.String key,
java.lang.String value,
java.lang.String defaultValue)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getKey()
Deprecated.
Gets property key
|
<T> T |
getOption(Option<T> option)
Deprecated.
Gets value for given option
|
Options |
getOptions()
Deprecated.
Gets all options of property
|
java.lang.String |
getValue()
Deprecated.
Gets property value.
|
<T> Property |
with(Option<T> option,
T value)
Deprecated.
Adds an option
|
Property |
withDefault(java.lang.String defaultValue)
Deprecated.
|
public static final Option<java.lang.Boolean> REQUIRED
public static final Option<java.lang.Boolean> PART_OF_IDENTITY
public static final Option<java.lang.Boolean> SECURE
public static final Option<java.lang.String> DISPLAY_NAME
public static final Option<java.lang.Integer> DISPLAY_ORDER
public Property(java.lang.String key)
protected Property(java.lang.String key,
java.lang.String value)
public Property(java.lang.String key,
java.lang.String value,
java.lang.String defaultValue)
public java.lang.String getKey()
public final <T> Property with(Option<T> option, T value)
T - Type of option valueoption - Option type to be addedvalue - Option valuepublic java.lang.String getValue()
public <T> T getOption(Option<T> option)
T - type of optionoption - for which value needs to fetchedpublic Options getOptions()
public Property withDefault(java.lang.String defaultValue)
Copyright © 2018 ThoughtWorks, Inc. GoCD Version: 18.2.0-6228