| Modifier and Type | Method and Description |
|---|---|
Property<?> |
AndHow.getProperty(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<Property<?>> |
AndHow.getProperties() |
List<Property<?>> |
AndHow.getPropertiesForGroup(Class<? extends BasePropertyGroup> group) |
| Modifier and Type | Method and Description |
|---|---|
List<EffectiveName> |
AndHow.getAliases(Property<?> property) |
String |
AndHow.getCanonicalName(Property<?> prop) |
<T> T |
AndHow.getEffectiveValue(Property<T> prop) |
<T> T |
AndHow.getExplicitValue(Property<T> prop) |
Class<? extends BasePropertyGroup> |
AndHow.getGroupForProperty(Property<?> prop) |
boolean |
AndHow.isExplicitlySet(Property<?> prop) |
| Modifier and Type | Field and Description |
|---|---|
static List<Property<?>> |
ConstructionDefinition.EMPTY_PROPERTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
PropertyValue.getProperty() |
Property<?> |
ConstructionDefinition.getProperty(String classpathStyleName)
Finds a registered property by any recognized classpath style name,
including the canonical name or 'in' aliases.
|
| Modifier and Type | Method and Description |
|---|---|
List<Property> |
Loader.getInstanceConfig()
A list of properties that the user has specified as being configuration
properties for this Loader.
|
List<Property<?>> |
ConstructionDefinition.getProperties()
Returns a complete list of all registered properties.
|
List<Property<?>> |
ConstructionDefinition.getPropertiesForGroup(Class<? extends BasePropertyGroup> group)
Returns a list of Properties registered in the passed group.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyNaming |
NamingStrategy.buildNames(Property prop,
Class<? extends BasePropertyGroup> containingGroup)
Build a list of names for the Property
|
List<EffectiveName> |
ConstructionDefinition.getAliases(Property<?> property)
Returns all aliases (in and out) for a property.
|
String |
ConstructionDefinition.getCanonicalName(Property<?> prop)
Returns the canonical name of a registered property.
|
<T> T |
ValueMap.getEffectiveValue(Property<T> prop)
The explicitly value, or if that is null, the default (which may also be null).
|
<T> T |
LoaderValues.getEffectiveValue(Property<T> prop) |
<T> T |
ValueMap.getExplicitValue(Property<T> prop)
Get a value explicitly configured.
|
<T> T |
LoaderValues.getExplicitValue(Property<T> prop)
A linear search for the Property in the values loaded by this loader.
|
Class<? extends BasePropertyGroup> |
ConstructionDefinition.getGroupForProperty(Property<?> prop)
Finds the BasePropertyGroup containing the specified Property.
|
boolean |
ValueMap.isExplicitlySet(Property<?> prop)
Returns true if the Property's value was explicitly set via one of the loaders.
|
boolean |
LoaderValues.isExplicitlySet(Property<?> prop)
A linear search for the Property in the values loaded by this loader.
|
void |
SamplePrinter.printProperty(ConstructionDefinition definition,
PrintStream out,
Class<? extends BasePropertyGroup> group,
Property<?> prop) |
| Constructor and Description |
|---|
PropertyValue(Property<?> prop,
Object value) |
PropertyValue(Property<?> prop,
Object value,
ProblemList<Problem> inIssues) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
SysPropExporter.doExport(String name,
Property<T> property,
ConstructionDefinition definition,
ValueMap values) |
abstract <T> void |
BaseExporter.doExport(String name,
Property<T> property,
ConstructionDefinition definition,
ValueMap values)
Subclasses can implement just this method.
|
void |
BaseExporter.export(Property<?> property,
ConstructionDefinition definition,
ValueMap values) |
protected boolean |
BaseExporter.hasOutAlias(Property<?> property,
ConstructionDefinition definition) |
| Modifier and Type | Field and Description |
|---|---|
Property<?> |
NameAndProperty.property |
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
PropertyCoord.getProperty()
The property, if that can be determined.
|
Property |
ConstructionProblem.LoaderPropertyNotRegistered.getProperty() |
Property<?> |
ConstructionDefinitionMutable.getProperty(String classpathStyleName) |
Property<?> |
ConstructionDefinitionImmutable.getProperty(String classpathStyleName) |
Property<?> |
AndHowCore.getProperty(String name) |
| Modifier and Type | Method and Description |
|---|---|
List<Property<?>> |
ConstructionDefinitionMutable.getProperties() |
List<Property<?>> |
ConstructionDefinitionImmutable.getProperties() |
List<Property<?>> |
AndHowCore.getProperties() |
List<Property<?>> |
ConstructionDefinitionMutable.getPropertiesForGroup(Class<? extends BasePropertyGroup> group) |
List<Property<?>> |
ConstructionDefinitionImmutable.getPropertiesForGroup(Class<? extends BasePropertyGroup> group) |
List<Property<?>> |
AndHowCore.getPropertiesForGroup(Class<? extends BasePropertyGroup> group) |
| Modifier and Type | Method and Description |
|---|---|
ConstructionProblem |
ConstructionDefinitionMutable.addProperty(Class<? extends BasePropertyGroup> group,
Property<?> property)
Adds a BasePropertyGroup, its Property and the name and aliases for that property
to all the collections.
|
protected <T> ConstructionProblem.InvalidDefaultValue |
ConstructionDefinitionMutable.checkForInvalidDefaultValue(Property<T> property,
Class<? extends BasePropertyGroup> group,
String canonName)
Checks a Property's default value against its Validators and adds entries
to constructProblems if there are issues.
|
List<EffectiveName> |
ConstructionDefinitionMutable.getAliases(Property<?> property) |
List<EffectiveName> |
ConstructionDefinitionImmutable.getAliases(Property<?> property) |
List<EffectiveName> |
AndHowCore.getAliases(Property<?> property) |
String |
ConstructionDefinitionMutable.getCanonicalName(Property<?> prop) |
String |
ConstructionDefinitionImmutable.getCanonicalName(Property<?> prop) |
String |
AndHowCore.getCanonicalName(Property<?> prop) |
protected <T> T |
ValueMapWithContextBase.getEffectiveValue(List<LoaderValues> valuesList,
Property<T> prop) |
<T> T |
ValueMapWithContextMutable.getEffectiveValue(Property<T> prop) |
<T> T |
ValueMapWithContextImmutable.getEffectiveValue(Property<T> prop) |
<T> T |
ValueMapImmutable.getEffectiveValue(Property<T> prop) |
<T> T |
AndHowCore.getEffectiveValue(Property<T> prop) |
<T> T |
ValueMapWithContextMutable.getExplicitValue(Property<T> prop) |
<T> T |
ValueMapWithContextImmutable.getExplicitValue(Property<T> prop) |
<T> T |
ValueMapImmutable.getExplicitValue(Property<T> prop) |
<T> T |
AndHowCore.getExplicitValue(Property<T> prop) |
Class<? extends BasePropertyGroup> |
ConstructionDefinitionMutable.getGroupForProperty(Property<?> prop) |
Class<? extends BasePropertyGroup> |
ConstructionDefinitionImmutable.getGroupForProperty(Property<?> prop) |
Class<? extends BasePropertyGroup> |
AndHowCore.getGroupForProperty(Property<?> prop) |
protected <T> T |
ValueMapWithContextBase.getValue(List<LoaderValues> valuesList,
Property<T> prop) |
boolean |
ValueMapWithContextMutable.isExplicitlySet(Property<?> prop) |
boolean |
ValueMapWithContextImmutable.isExplicitlySet(Property<?> prop) |
boolean |
ValueMapImmutable.isExplicitlySet(Property<?> prop) |
boolean |
AndHowCore.isExplicitlySet(Property<?> prop) |
protected boolean |
ValueMapWithContextBase.isPropertyPresent(List<LoaderValues> valuesList,
Property<?> prop) |
| Constructor and Description |
|---|
ConstructionDefinitionImmutable(NamingStrategy namingStrategy,
List<Class<? extends BasePropertyGroup>> groupList,
List<Property<?>> properties,
Map<Class<? extends BasePropertyGroup>,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
ConstructionDefinitionImmutable(NamingStrategy namingStrategy,
List<Class<? extends BasePropertyGroup>> groupList,
List<Property<?>> properties,
Map<Class<? extends BasePropertyGroup>,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
ConstructionDefinitionImmutable(NamingStrategy namingStrategy,
List<Class<? extends BasePropertyGroup>> groupList,
List<Property<?>> properties,
Map<Class<? extends BasePropertyGroup>,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
ConstructionDefinitionImmutable(NamingStrategy namingStrategy,
List<Class<? extends BasePropertyGroup>> groupList,
List<Property<?>> properties,
Map<Class<? extends BasePropertyGroup>,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
ConstructionDefinitionImmutable(NamingStrategy namingStrategy,
List<Class<? extends BasePropertyGroup>> groupList,
List<Property<?>> properties,
Map<Class<? extends BasePropertyGroup>,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
ValueMapImmutable(Map<Property<?>,Object> loadedValues) |
| Modifier and Type | Method and Description |
|---|---|
List<Property> |
PropertyFileOnFilesystemLoader.getInstanceConfig() |
List<Property> |
PropertyFileOnClasspathLoader.getInstanceConfig() |
List<Property> |
BaseLoader.getInstanceConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseLoader.attemptToAdd(ConstructionDefinition appConfigDef,
List<PropertyValue> values,
ProblemList<Problem> loaderProblems,
Property prop,
Object value)
Util method to attempt to load an object of an unknown type to a property.
|
protected <T> PropertyValue |
BaseLoader.createValue(ConstructionDefinition appConfigDef,
Property<T> prop,
String untrimmedString) |
| Modifier and Type | Method and Description |
|---|---|
PropertyNaming |
CaseInsensitiveNaming.buildNames(Property prop,
Class<? extends BasePropertyGroup> parentGroup) |
PropertyNaming |
CaseInsensitiveNaming.buildNamesFromCanonical(Property prop,
Class<? extends BasePropertyGroup> parentGroup,
String canonicalName) |
| Modifier and Type | Class and Description |
|---|---|
class |
PropertyBuilderBase<B extends PropertyBuilderBase,P extends Property<T>,T>
A generic PropertyBuilder class which needs to be fully implemented as an
inner class in each Property implementation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FlagProp
A True/False switch that is never null and behaves similarly to a unix cmd line switch.
|
class |
IntProp
A Property that refers to an Integer value.
|
class |
LngProp
A Property that refers to a Long value.
|
class |
LocalDateTimeProp
A Property that refers to a Long value.
|
class |
PropertyBase<T> |
class |
StrProp
A Property that refers to a String value.
|
| Modifier and Type | Method and Description |
|---|---|
TextBlock |
PropFileLoaderSamplePrinter.getActualProperty(ConstructionDefinition definition,
Class<? extends BasePropertyGroup> group,
Property prop) |
TextBlock |
JndiLoaderSamplePrinter.getActualProperty(ConstructionDefinition definition,
Class<? extends BasePropertyGroup> group,
Property prop) |
abstract TextBlock |
BaseSamplePrinter.getActualProperty(ConstructionDefinition definition,
Class<? extends BasePropertyGroup> group,
Property prop) |
void |
BaseSamplePrinter.printProperty(ConstructionDefinition definition,
PrintStream out,
Class<? extends BasePropertyGroup> group,
Property<?> prop) |
| Modifier and Type | Method and Description |
|---|---|
static String |
AndHowUtil.getCanonicalName(Class<? extends BasePropertyGroup> group,
Property<?> property)
Gets the true canonical name for a Property in the group.
|
static String |
AndHowUtil.getFieldName(Class<? extends BasePropertyGroup> group,
Property<?> property)
Gets the field name for a property in the group,
which is just the last portion of the canonical name.
|
Copyright © 2017. All rights reserved.