T - Property value type@ProviderType public final class PropertyMetadata<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<Class<?>> |
SUPPORTED_TYPES
Set with all types support for property metadata (not including nested configurations).
|
| Constructor and Description |
|---|
PropertyMetadata(String name,
Class<T> type) |
PropertyMetadata(String name,
T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
PropertyMetadata<T> |
configurationMetadata(ConfigurationMetadata configurationMetadata) |
PropertyMetadata<T> |
defaultValue(T value) |
T |
description(String description) |
ConfigurationMetadata |
getConfigurationMetadata() |
T |
getDefaultValue() |
String |
getDescription() |
String |
getLabel() |
String |
getName() |
int |
getOrder() |
Map<String,String> |
getProperties() |
Class<T> |
getType() |
boolean |
isNestedConfiguration() |
T |
label(String label) |
PropertyMetadata<T> |
order(int value) |
T |
properties(Map<String,String> properties) |
String |
toString() |
public PropertyMetadata(@Nonnull
String name,
@Nonnull
Class<T> type)
name - Property nametype - Property typepublic 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 String toString()
@Nonnull public String getName()
public String getLabel()
public T label(String label)
label - Labelpublic String getDescription()
public T description(String description)
description - Descriptionpublic Map<String,String> getProperties()
Copyright © 2017 The Apache Software Foundation. All rights reserved.