public abstract class PropertyBase<T> extends Object implements Property<T>
| 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()
Additional help information for this Property that will be included in configuration documentation.
|
PropertyType |
getPropertyType()
The basic type of the property: Flag, name/value, multi=value.
|
List<Name> |
getRequestedAliases()
'In' & 'Out' aliases requested when this Property was constructed.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonicalName, getInAliases, getOutAliases, getValueAsString, isExplicitlySetpublic 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()
Property
The returned aliases may differ from the original requested aliases or those returned by
Property.getInAliases() in two ways:
NamingStrategy may modify 'In' aliases, e.g. convert them to uppercase for
case-insensitive matching. Property.getInAliases() returns the modified 'In' aliases.getRequestedAliases in interface Property<T>Names for this Property.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 © 2022. All rights reserved.