T
- Property value type@ProviderType
public final class PropertyMetadata<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.Class<?>> |
SUPPORTED_TYPES
Set with all types support for property metadata (not including nested configurations).
|
Constructor and Description |
---|
PropertyMetadata(@NotNull java.lang.String name,
@NotNull java.lang.Class<T> type) |
PropertyMetadata(@NotNull java.lang.String name,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
PropertyMetadata<T> |
configurationMetadata(ConfigurationMetadata configurationMetadata) |
PropertyMetadata<T> |
defaultValue(T value) |
T |
description(java.lang.String description) |
ConfigurationMetadata |
getConfigurationMetadata() |
T |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getLabel() |
@NotNull java.lang.String |
getName() |
int |
getOrder() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
@NotNull java.lang.Class<T> |
getType() |
boolean |
isNestedConfiguration() |
T |
label(java.lang.String label) |
PropertyMetadata<T> |
order(int value) |
T |
properties(java.util.Map<java.lang.String,java.lang.String> properties) |
java.lang.String |
toString() |
public static final java.util.Set<java.lang.Class<?>> SUPPORTED_TYPES
public PropertyMetadata(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.Class<T> type)
name
- Property nametype
- Property typepublic PropertyMetadata(@NotNull @NotNull java.lang.String name, @NotNull T defaultValue)
name
- Property namedefaultValue
- Default value (also defines property type)@NotNull public @NotNull java.lang.Class<T> getType()
public T getDefaultValue()
public PropertyMetadata<T> defaultValue(T value)
value
- Default value if parameter is not set for configurationpublic int getOrder()
public PropertyMetadata<T> order(int value)
value
- Number to control property order in configuration editor.public ConfigurationMetadata getConfigurationMetadata()
public PropertyMetadata<T> configurationMetadata(ConfigurationMetadata configurationMetadata)
configurationMetadata
- Metadata for nested configurationpublic boolean isNestedConfiguration()
public java.lang.String toString()
@NotNull public @NotNull java.lang.String getName()
public java.lang.String getLabel()
public T label(java.lang.String label)
label
- Labelpublic java.lang.String getDescription()
public T description(java.lang.String description)
description
- Descriptionpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public T properties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- Further properties for documentation and configuration of behavior in configuration editor.Copyright © 2018 The Apache Software Foundation. All rights reserved.