|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.spec.UserPrefSpec.Builder
public static class UserPrefSpec.Builder
A builder that facilitates construction of UserPrefSpec objects. The final UserPrefSpec
is created by calling the build() method
| Method Summary | |
|---|---|
UserPrefSpec |
build()
Returns the final constructed UserPrefSpec |
UserPrefSpec.Builder |
dataType(DataType dataType)
Set the DataType of the UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
defaultValue(String defaultValue)
Set the default value of the UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
displayName(String displayName)
Set the display name of the UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
enumValues(Map<String,String> enumValues)
Set the Map of the possible values for an enumerated UserPrefSpec under
construction and return this Builder to allow further construction to be done. |
UserPrefSpec.Builder |
required(boolean required)
Set the setting of the UserPrefSpec under construction whether it is required or not and
return this Builder to allow further construction to be done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public UserPrefSpec.Builder displayName(String displayName)
UserPrefSpec under construction and return this Builder
to allow further construction to be done.
displayName - name to show the user for this UserPrefSpec
public UserPrefSpec.Builder required(boolean required)
UserPrefSpec under construction whether it is required or not and
return this Builder to allow further construction to be done.
required - the setting of this UserPrefSpec whether it is required or not
public UserPrefSpec.Builder dataType(DataType dataType)
DataType of the UserPrefSpec under construction and return this Builder
to allow further construction to be done.
dataType - the DataType of this pref
public UserPrefSpec.Builder enumValues(Map<String,String> enumValues)
Map of the possible values for an enumerated UserPrefSpec under
construction and return this Builder to allow further construction to be done.
enumValues - the possible values for an enumerated pref
public UserPrefSpec.Builder defaultValue(String defaultValue)
UserPrefSpec under construction and return this Builder
to allow further construction to be done.
defaultValue - the pref's default value
public UserPrefSpec build()
UserPrefSpec
UserPrefSpec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||