| Modifier and Type | Interface and Description |
|---|---|
interface |
Options
Global options to configure AndHow behavior.
|
interface |
PropertyGroup
A logical and/or functional grouping of Properties.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BasePropertyGroup> |
AndHow.getGroupForProperty(Property<?> prop) |
List<Class<? extends BasePropertyGroup>> |
AndHow.getPropertyGroups() |
| Modifier and Type | Method and Description |
|---|---|
List<Property<?>> |
AndHow.getPropertiesForGroup(Class<? extends BasePropertyGroup> group) |
AndHow.AndHowBuilder |
AndHow.AndHowBuilder.group(Class<? extends BasePropertyGroup> group)
Add a group to the list of groups being built.
|
AndHow.AndHowBuilder |
AndHow.AndHowBuilder.groups(Collection<Class<? extends BasePropertyGroup>> groups)
Add a list of groups to the list of groups being built.
|
void |
AndHow.Reloader.reload(NamingStrategy naming,
List<Loader> loaders,
List<Class<? extends BasePropertyGroup>> registeredGroups)
Forces a reload of the AndHow state.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BasePropertyGroup> |
Loader.getClassConfig()
A group of Properties used to globally configure all instance of a type
of loader.
|
Class<? extends BasePropertyGroup> |
ExportGroup.getGroup() |
Class<? extends BasePropertyGroup> |
ConstructionDefinition.getGroupForProperty(Property<?> prop)
Finds the BasePropertyGroup containing the specified Property.
|
List<Class<? extends BasePropertyGroup>> |
ConstructionDefinition.getPropertyGroups()
Returns a list of all registered groups.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyNaming |
NamingStrategy.buildNames(Property prop,
Class<? extends BasePropertyGroup> containingGroup)
Build a list of names for the Property
|
void |
Exporter.export(Class<? extends BasePropertyGroup> group,
ConstructionDefinition definition,
ValueMap values)
Exports a BasePropertyGroup.
|
List<Property<?>> |
ConstructionDefinition.getPropertiesForGroup(Class<? extends BasePropertyGroup> group)
Returns a list of Properties registered in the passed group.
|
void |
SamplePrinter.printProperty(ConstructionDefinition definition,
PrintStream out,
Class<? extends BasePropertyGroup> group,
Property<?> prop) |
void |
SamplePrinter.printPropertyGroupEnd(ConstructionDefinition definition,
PrintStream out,
Class<? extends BasePropertyGroup> group) |
void |
SamplePrinter.printPropertyGroupStart(ConstructionDefinition definition,
PrintStream out,
Class<? extends BasePropertyGroup> group) |
| Constructor and Description |
|---|
ExportGroup(Exporter exporter,
Class<? extends BasePropertyGroup> group) |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseExporter.export(Class<? extends BasePropertyGroup> group,
ConstructionDefinition definition,
ValueMap values) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BasePropertyGroup> |
PropertyCoord.getGroup()
The group containing the Property, if that can be determined.
|
Class<? extends BasePropertyGroup> |
ConstructionDefinitionMutable.getGroupForProperty(Property<?> prop) |
Class<? extends BasePropertyGroup> |
ConstructionDefinitionImmutable.getGroupForProperty(Property<?> prop) |
Class<? extends BasePropertyGroup> |
AndHowCore.getGroupForProperty(Property<?> prop) |
List<Class<? extends BasePropertyGroup>> |
ConstructionDefinitionMutable.getPropertyGroups() |
List<Class<? extends BasePropertyGroup>> |
ConstructionDefinitionImmutable.getPropertyGroups() |
List<Class<? extends BasePropertyGroup>> |
AndHowCore.getPropertyGroups() |
| 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<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 | Interface and Description |
|---|---|
static interface |
JndiLoader.CONFIG |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends BasePropertyGroup> |
JndiLoader.getClassConfig() |
Class<? extends BasePropertyGroup> |
BaseLoader.getClassConfig() |
| 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 | Method and Description |
|---|---|
static ConstructionDefinitionMutable |
AndHowUtil.buildDefinition(List<Class<? extends BasePropertyGroup>> groups,
List<Loader> loaders,
NamingStrategy naming,
ProblemList<Problem> problems)
Build a fully populated ConstructionDefinition from the passed Groups,
using the NamingStrategy to generate names for each.
|
static String |
AndHowUtil.getCanonicalName(Class<? extends BasePropertyGroup> group,
Property<?> property)
Gets the true canonical name for a Property in the group.
|
static List<Exporter> |
AndHowUtil.getExporters(Class<? extends BasePropertyGroup> group)
Returns the list of Exporters that are annotated for a BasePropertyGroup.
|
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.
|
static List<NameAndProperty> |
AndHowUtil.getProperties(Class<? extends BasePropertyGroup> group)
Builds a list of all Properties and their field names contained in
the passed group.
|
protected static ProblemList<ConstructionProblem> |
AndHowUtil.registerGroup(ConstructionDefinitionMutable appDef,
Class<? extends BasePropertyGroup> group) |
Copyright © 2017. All rights reserved.