public static class PropertyDefinition.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PropertyDefinition |
build() |
PropertyDefinition.Builder |
category(java.lang.String category) |
PropertyDefinition.Builder |
defaultValue(java.lang.String defaultValue) |
PropertyDefinition.Builder |
deprecatedKey(java.lang.String deprecatedKey) |
PropertyDefinition.Builder |
description(java.lang.String description) |
PropertyDefinition.Builder |
fields(java.util.List<PropertyFieldDefinition> fields) |
PropertyDefinition.Builder |
fields(PropertyFieldDefinition first,
PropertyFieldDefinition... rest) |
PropertyDefinition.Builder |
hidden()
Flag the property as hidden.
|
PropertyDefinition.Builder |
index(int index)
Set the order index in Settings pages.
|
PropertyDefinition.Builder |
multiValues(boolean multiValues) |
PropertyDefinition.Builder |
name(java.lang.String name) |
PropertyDefinition.Builder |
onlyOnQualifiers(java.util.List<java.lang.String> qualifiers)
The property will be available in the components
with the given qualifiers, but NOT in General Settings.
|
PropertyDefinition.Builder |
onlyOnQualifiers(java.lang.String first,
java.lang.String... rest)
The property will be available in the components
with the given qualifiers, but NOT in General Settings.
|
PropertyDefinition.Builder |
onQualifiers(java.util.List<java.lang.String> qualifiers)
The property will be available in General Settings AND in the components
with the given qualifiers.
|
PropertyDefinition.Builder |
onQualifiers(java.lang.String first,
java.lang.String... rest)
The property will be available in General Settings AND in the components
with the given qualifiers.
|
PropertyDefinition.Builder |
options(java.util.List<java.lang.String> options) |
PropertyDefinition.Builder |
options(java.lang.String first,
java.lang.String... rest) |
PropertyDefinition.Builder |
propertySetKey(java.lang.String propertySetKey)
Deprecated.
since 6.1, as it was not used and too complex to maintain.
|
PropertyDefinition.Builder |
subCategory(java.lang.String subCategory) |
PropertyDefinition.Builder |
type(PropertyType type) |
public PropertyDefinition.Builder description(java.lang.String description)
public PropertyDefinition.Builder name(java.lang.String name)
PropertyDefinition.name()
public PropertyDefinition.Builder defaultValue(java.lang.String defaultValue)
PropertyDefinition.defaultValue()
public PropertyDefinition.Builder category(java.lang.String category)
PropertyDefinition.category()
public PropertyDefinition.Builder subCategory(java.lang.String subCategory)
PropertyDefinition.subCategory()
public PropertyDefinition.Builder onQualifiers(java.lang.String first, java.lang.String... rest)
Qualifiers
. By default property is available
only in General Settings.public PropertyDefinition.Builder onQualifiers(java.util.List<java.lang.String> qualifiers)
Qualifiers
. By default property is available
only in General Settings.public PropertyDefinition.Builder onlyOnQualifiers(java.lang.String first, java.lang.String... rest)
Qualifiers
. By default property is available
only in General Settings.public PropertyDefinition.Builder onlyOnQualifiers(java.util.List<java.lang.String> qualifiers)
Qualifiers
. By default property is available
only in General Settings.public PropertyDefinition.Builder type(PropertyType type)
PropertyDefinition.type()
public PropertyDefinition.Builder options(java.lang.String first, java.lang.String... rest)
public PropertyDefinition.Builder options(java.util.List<java.lang.String> options)
public PropertyDefinition.Builder multiValues(boolean multiValues)
@Deprecated public PropertyDefinition.Builder propertySetKey(java.lang.String propertySetKey)
public PropertyDefinition.Builder fields(PropertyFieldDefinition first, PropertyFieldDefinition... rest)
public PropertyDefinition.Builder fields(java.util.List<PropertyFieldDefinition> fields)
public PropertyDefinition.Builder deprecatedKey(java.lang.String deprecatedKey)
public PropertyDefinition.Builder hidden()
Settings
.public PropertyDefinition.Builder index(int index)
public PropertyDefinition build()