| Constructor and Description |
|---|
PropertyBase(T defaultValue,
boolean required,
String shortDesc,
List<Validator<T>> validators,
List<Name> aliases,
PropertyType paramType,
ValueType<T> valueType,
Trimmer trimmer,
String helpText) |
| Modifier and Type | Method and Description |
|---|---|
T |
getDefaultValue() |
T |
getExplicitValue() |
T |
getExplicitValue(ValueMap values) |
String |
getHelpText()
Added details that might be shown if the user requests help.
|
PropertyType |
getPropertyType()
The basic type of the property: Flag, name/value, multi=value.
|
List<Name> |
getRequestedAliases()
The list of Aliases requested by this property in its declaration.
|
String |
getShortDescription()
A short sentence description.
|
Trimmer |
getTrimmer()
The Trimmer responsible for trimming String values before they are converted
to the appropriate property type.
|
List<Validator<T>> |
getValidators()
List of validators to validate the converted value.
|
T |
getValue() |
T |
getValue(ValueMap values) |
ValueType<T> |
getValueType()
The type of the value (String, Number, Integer, etc).
|
boolean |
isRequired() |
public PropertyType getPropertyType()
PropertygetPropertyType in interface Property<T>public ValueType<T> getValueType()
PropertygetValueType in interface Property<T>public Trimmer getTrimmer()
PropertygetTrimmer in interface Property<T>public String getShortDescription()
PropertygetShortDescription in interface Property<T>public List<Validator<T>> getValidators()
PropertygetValidators in interface Property<T>public List<Name> getRequestedAliases()
PropertyIntProp MyProp = IntProp.builder().inAlias("Bob").outAlias("Bob").build();
getConfiguredAliases() may return a single Alias object w/ the name "Bob",
marked as being both both in and out.getRequestedAliases in interface Property<T>public String getHelpText()
PropertygetHelpText in interface Property<T>public boolean isRequired()
isRequired in interface Property<T>public T getExplicitValue(ValueMap values)
getExplicitValue in interface Property<T>public final T getExplicitValue()
getExplicitValue in interface Property<T>public T getDefaultValue()
getDefaultValue in interface Property<T>Copyright © 2017. All rights reserved.