@Immutable public final class UserPrefSpec extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UserPrefSpec.Builder
A builder that facilitates construction of
UserPrefSpec objects. |
| Modifier and Type | Method and Description |
|---|---|
DataType |
getDataType()
Returns the
DataType of this pref. |
String |
getDefaultValue()
Returns the pref's default value.
|
String |
getDisplayName()
Returns the display name of this parameter.
|
Map<String,String> |
getEnumValues()
Returns the possible values for an enumerated pref.
|
String |
getName()
Returns the pref name.
|
boolean |
isRequired()
Returns true if the pref is required.
|
String |
toString() |
static UserPrefSpec.Builder |
userPrefSpec(String name)
Factory method to create a new builder which can be used to create
UserPrefSpec objects. |
static UserPrefSpec.Builder |
userPrefSpec(UserPrefSpec userPrefSpec)
Factory method which allows you to create a new
UserPrefSpec object based on an existing
UserPrefSpec. |
public String getName()
public String getDisplayName()
public boolean isRequired()
public DataType getDataType()
DataType of this pref.public Map<String,String> getEnumValues()
public String getDefaultValue()
public static UserPrefSpec.Builder userPrefSpec(String name)
UserPrefSpec objects. It returns
a Builder which allows you to set the user pref spec values.name - the pref nameBuilder which allows you to set the user pref spec valuespublic static UserPrefSpec.Builder userPrefSpec(UserPrefSpec userPrefSpec)
UserPrefSpec object based on an existing
UserPrefSpec.userPrefSpec - the UserPrefSpec to start with when building the new UserPrefSpecBuilder which allows you to set the gadget spec valuesCopyright © 2024 Atlassian. All rights reserved.