public class ConfigPropertyBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ConfigPropertyBuilder |
createAccountListProperty(java.lang.String name,
java.util.List<java.lang.Long> defaultValue,
java.lang.String description)
Creates a configuration metadata definition for an account list property.
|
static ConfigPropertyBuilder |
createAccountProperty(java.lang.String name,
java.lang.Long defaultValue,
java.lang.String description)
Creates a configuration metadata definition for an account property.
|
static ConfigPropertyBuilder |
createBooleanProperty(java.lang.String name,
boolean defaultValue,
java.lang.String description)
Creates a configuration metadata definition for a boolean property.
|
static ConfigPropertyBuilder |
createIntegerProperty(java.lang.String name,
int defaultValue,
java.lang.String description)
Creates a configuration metadata definition for an integer property.
|
static ConfigPropertyBuilder |
createPasswordProperty(java.lang.String name,
java.lang.String defaultValue,
java.lang.String description)
Creates a configuration metadata definition for a password property.
|
static ConfigPropertyBuilder |
createStringListProperty(java.lang.String name,
java.util.List<java.lang.String> defaultValue,
java.lang.String description)
Creates a configuration metadata definition for a string list property.
|
static ConfigPropertyBuilder |
createStringProperty(java.lang.String name,
java.lang.String defaultValue,
java.lang.String description)
Creates a configuration metadata definition for a string property.
|
ConfigPropertyBuilder |
setMax(java.lang.Integer max) |
ConfigPropertyBuilder |
setMin(java.lang.Integer min) |
public static ConfigPropertyBuilder createStringProperty(java.lang.String name, java.lang.String defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the property, can be empty but not nulldescription
- the description of the propertypublic static ConfigPropertyBuilder createStringListProperty(java.lang.String name, java.util.List<java.lang.String> defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the property, can be empty but not nulldescription
- the description of the propertypublic static ConfigPropertyBuilder createBooleanProperty(java.lang.String name, boolean defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the propertydescription
- the description of the propertypublic static ConfigPropertyBuilder createIntegerProperty(java.lang.String name, int defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the propertydescription
- the description of the propertypublic static ConfigPropertyBuilder createAccountProperty(java.lang.String name, java.lang.Long defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the property, set to null for an empty default valuedescription
- the description of the propertypublic static ConfigPropertyBuilder createAccountListProperty(java.lang.String name, java.util.List<java.lang.Long> defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the property, can be empty but not nulldescription
- the description of the propertypublic static ConfigPropertyBuilder createPasswordProperty(java.lang.String name, java.lang.String defaultValue, java.lang.String description)
name
- the name of the propertydefaultValue
- the default value of the property, can be empty but not nulldescription
- the description of the propertypublic ConfigPropertyBuilder setMin(java.lang.Integer min)
min
- the defined minimum value, set to null to disable the constraintpublic ConfigPropertyBuilder setMax(java.lang.Integer max)
max
- the defined maximum value, set to null to disable the constraint