| Constructor and Description |
|---|
PropertyBase(T defaultValue,
boolean nonNull,
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()
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.
|
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 getDescription()
PropertygetDescription 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 isNonNullRequired()
PropertyisNonNullRequired in interface Property<T>public T getValue()
Propertypublic final T getExplicitValue()
PropertygetExplicitValue in interface Property<T>public T getDefaultValue()
PropertygetDefaultValue in interface Property<T>Copyright © 2017. All rights reserved.