public final class TLfnCustomPropertyDefinitions extends Object
For each custom property definition, the following information needs to be provided:
A TLfnCustomPropertyDefinitions
instance cannot be created directly. Instead, a builder needs to be used to
add information about the properties one by one.
TLfnCustomPropertyDefinitions.newBuilder()
.addLongProperty("longProp", "Long Property", true)
.addDoubleProperty("doubleProp", "Double Property", true)
.addStringProperty("stringProp", "String Property", true)
.addBooleanProperty("booleanProp", "Boolean Property", true)
.addDateProperty("dateProp", "Date Property", true)
.addEnumProperty("enumProp", "Enum Property", new HashSet<>(Arrays.asList("option1", "option2", "option3")), true)
.build();
The method that is used to add the property information defines the type. For example,
use TLfnCustomPropertyDefinitions.Builder.addStringProperty(String)
to define a custom property of type string.
An object of this type needs to be provided in the ILfnCustomPropertyDecoder.getPropertyDefinitions()
.
Modifier and Type | Class and Description |
---|---|
static class |
TLfnCustomPropertyDefinitions.Builder
A builder for a creating a
TLfnCustomPropertyDefinitions instance. |
Modifier and Type | Method and Description |
---|---|
static TLfnCustomPropertyDefinitions.Builder |
newBuilder()
Creates a new builder to start building a
TLfnCustomPropertyDefinitions instance. |
public static TLfnCustomPropertyDefinitions.Builder newBuilder()
TLfnCustomPropertyDefinitions
instance.TLfnCustomPropertyDefinitions
object