public class Property extends Object
| Modifier and Type | Field and Description |
|---|---|
static Option<String> |
DISPLAY_NAME
Option to specify the display name for the property
|
static Option<Integer> |
DISPLAY_ORDER
Option to specify order of display of property on screen
|
static Option<Boolean> |
PART_OF_IDENTITY
Option to specify if a property is part of group of properties used to uniquely identify material
|
static Option<Boolean> |
REQUIRED
Option to specify if a property is a mandatory when configuration is captured
|
static Option<Boolean> |
SECURE
Option to specify if a property is a secure property.
|
| Modifier | Constructor and Description |
|---|---|
|
Property(String key) |
protected |
Property(String key,
String value) |
|
Property(String key,
String value,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Gets property key
|
<T> T |
getOption(Option<T> option)
Gets value for given option
|
Options |
getOptions()
Gets all options of property
|
String |
getValue()
Gets property value.
|
<T> Property |
with(Option<T> option,
T value)
Adds an option
|
Property |
withDefault(String defaultValue) |
public static final Option<Boolean> REQUIRED
public static final Option<Boolean> PART_OF_IDENTITY
public static final Option<Boolean> SECURE
public static final Option<String> DISPLAY_NAME
public Property(String key)
public String getKey()
public final <T> Property with(Option<T> option, T value)
T - Type of option valueoption - Option type to be addedvalue - Option valuepublic String getValue()
public <T> T getOption(Option<T> option)
T - type of optionoption - for which value needs to fetchedpublic Options getOptions()
Copyright © 2014 ThoughtWorks, Inc. Go Version: 16.2.1-175