T
- Property value typepublic 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(java.lang.String name,
java.lang.Class<T> type) |
PropertyMetadata(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() |
java.lang.String |
getName() |
int |
getOrder() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
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(java.lang.String name, java.lang.Class<T> type)
name
- Property nametype
- Property typepublic PropertyMetadata(java.lang.String name, T defaultValue)
name
- Property namedefaultValue
- Default value (also defines property type)public 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()
public 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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"