public interface Property<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getDefaultValue()
The default value, as defined when this Property was constructed.
|
String |
getDescription()
A description of the property, what it is for and what it does in the system.
|
T |
getExplicitValue()
The value found and loaded for this value by a Loader.
|
String |
getHelpText()
Added details that will 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.
|
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()
Returns the effective value of this property.
|
ValueType<T> |
getValueType()
The type of the value (String, Number, Integer, etc).
|
boolean |
isNonNullRequired()
If true, the effective value must be non-null to be considered valid.
|
T getValue()
T getExplicitValue()
T getDefaultValue()
boolean isNonNullRequired()
PropertyType getPropertyType()
ValueType<T> getValueType()
Trimmer getTrimmer()
String getDescription()
List<Validator<T>> getValidators()
List<Name> getRequestedAliases()
IntProp 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.String getHelpText()
Copyright © 2017. All rights reserved.