public static final class TLfnCustomPropertyDefinitions.Builder extends Object
TLfnCustomPropertyDefinitions
instance. To create a new builder, use the
TLfnCustomPropertyDefinitions.newBuilder()
method.Modifier and Type | Method and Description |
---|---|
TLfnCustomPropertyDefinitions.Builder |
addBooleanProperty(String aPropertyName)
Defines a property of type Boolean.
|
TLfnCustomPropertyDefinitions.Builder |
addBooleanProperty(String aPropertyName,
String aPropertyDisplayName,
boolean aQueryable)
Defines a property of type Boolean.
|
TLfnCustomPropertyDefinitions.Builder |
addDateProperty(String aPropertyName)
Defines a property of type Date.
|
TLfnCustomPropertyDefinitions.Builder |
addDateProperty(String aPropertyName,
String aPropertyDisplayName,
boolean aQueryable)
Defines a property of type Date.
|
TLfnCustomPropertyDefinitions.Builder |
addDoubleProperty(String aPropertyName)
Defines a property of type Double.
|
TLfnCustomPropertyDefinitions.Builder |
addDoubleProperty(String aPropertyName,
String aPropertyDisplayName,
boolean aQueryable)
Adds information about a property of type Double.
|
TLfnCustomPropertyDefinitions.Builder |
addEnumProperty(String aPropertyName,
Set<String> aPossibleValues)
Defines a property of type String with a predefined set of possible values.
|
TLfnCustomPropertyDefinitions.Builder |
addEnumProperty(String aPropertyName,
String aPropertyDisplayName,
Set<String> aPossibleValues,
boolean aQueryable)
Defines a property of type String with a predefined set of possible values.
|
TLfnCustomPropertyDefinitions.Builder |
addLongProperty(String aPropertyName)
Defines a property of type Long.
|
TLfnCustomPropertyDefinitions.Builder |
addLongProperty(String aPropertyName,
String aPropertyDisplayName,
boolean aQueryable)
Defines a property of type Long.
|
TLfnCustomPropertyDefinitions.Builder |
addStringProperty(String aPropertyName)
Defines a property of type String.
|
TLfnCustomPropertyDefinitions.Builder |
addStringProperty(String aPropertyName,
String aPropertyDisplayName,
boolean aQueryable)
Defines a property of type String.
|
TLfnCustomPropertyDefinitions |
build()
Builds the
TLfnCustomPropertyDefinitions object. |
public TLfnCustomPropertyDefinitions.Builder addStringProperty(String aPropertyName)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
If the property needs to have a displayName, or if it needs to be queryable, then use
addStringProperty(String, String, boolean)
instead. Calling this method is equivalent to calling
addStringProperty(aPropertyName, null, false);
.
aPropertyName
- the unique name of the propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addStringProperty(String aPropertyName, String aPropertyDisplayName, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addBooleanProperty(String aPropertyName)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
If the property needs to have a displayName, or if it needs to be queryable, then use
addBooleanProperty(String, String, boolean)
instead. Calling this method is equivalent to calling
addBooleanProperty(aPropertyName, null, false);
.
aPropertyName
- the unique name of the propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addBooleanProperty(String aPropertyName, String aPropertyDisplayName, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addLongProperty(String aPropertyName)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
If the property needs to have a displayName, or if it needs to be queryable, then use
addLongProperty(String, String, boolean)
instead. Calling this method is equivalent to calling
addLongProperty(aPropertyName, null, false);
.
aPropertyName
- the unique name of the propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addLongProperty(String aPropertyName, String aPropertyDisplayName, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addDoubleProperty(String aPropertyName)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
If the property needs to have a displayName, or if it needs to be queryable, then use
addDoubleProperty(String, String, boolean)
instead. Calling this method is equivalent to calling
addDoubleProperty(aPropertyName, null, false);
.
aPropertyName
- the unique name of the propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addDoubleProperty(String aPropertyName, String aPropertyDisplayName, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addDateProperty(String aPropertyName)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
If the property needs to have a displayName, or if it needs to be queryable, then use
addDateProperty(String, String, boolean)
instead. Calling this method is equivalent to calling
addDateProperty(aPropertyName, null, false);
.
aPropertyName
- the unique name of the propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addDateProperty(String aPropertyName, String aPropertyDisplayName, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_').
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addEnumProperty(String aPropertyName, Set<String> aPossibleValues)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_'). The provided set of possible values cannot be null, be empty, or contain a null value. The possible values need to be unique (case-sensitive).
If the property needs to have a displayName, or if it needs to be queryable, then use
addEnumProperty(String, String, Set, boolean)
instead. Calling this method is equivalent to calling
addEnumProperty(aPropertyName, null, aPossibleValues, false);
.
aPropertyName
- the unique name of the propertyaPossibleValues
- the possible values of the enum propertyIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions.Builder addEnumProperty(String aPropertyName, String aPropertyDisplayName, Set<String> aPossibleValues, boolean aQueryable)
The name of the property can only contain letters, digits, periods ('.'), dashes ('-'), and underscores ('_'). The provided set of possible values cannot be null, be empty, or contain a null value. The possible values need to be unique (case-sensitive).
aPropertyName
- the unique name of the propertyaPropertyDisplayName
- the displayName of the propertyaPossibleValues
- the possible values of the enum propertyaQueryable
- indicates if this property is queryable or notIllegalArgumentException
- if the name of the property is not validpublic TLfnCustomPropertyDefinitions build()
TLfnCustomPropertyDefinitions
object. This method validates that all properties that
have been defined use a unique name. An IllegalArgumentException is thrown if this is not the case.IllegalArgumentException
- if duplicate property names are found