public class AndHowUtil extends Object
| Constructor and Description |
|---|
AndHowUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ConstructionDefinitionMutable |
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 AppFatalException |
buildFatalException(ProblemList<Problem> problems) |
static String |
getCanonicalName(Class<? extends BasePropertyGroup> group,
Property<?> property)
Gets the true canonical name for a Property in the group.
|
static List<Exporter> |
getExporters(Class<? extends BasePropertyGroup> group)
Returns the list of Exporters that are annotated for a BasePropertyGroup.
|
static String |
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> |
getProperties(Class<? extends BasePropertyGroup> group)
Builds a list of all Properties and their field names contained in
the passed group.
|
static void |
printExceptions(List<? extends Exception> exceptions,
PrintStream out) |
protected static ProblemList<ConstructionProblem> |
registerGroup(ConstructionDefinitionMutable appDef,
Class<? extends BasePropertyGroup> group) |
public static ConstructionDefinitionMutable buildDefinition(List<Class<? extends BasePropertyGroup>> groups, List<Loader> loaders, NamingStrategy naming, ProblemList<Problem> problems)
groups - The PropertyGroups from which to find Properties. May be null.loaders - The Loaders, which may their own configurable PropertyGroups.naming - A naming strategy to use when reading the properties during loadingproblems - If construction problems are found, add to this list.protected static ProblemList<ConstructionProblem> registerGroup(ConstructionDefinitionMutable appDef, Class<? extends BasePropertyGroup> group)
public static void printExceptions(List<? extends Exception> exceptions, PrintStream out)
public static AppFatalException buildFatalException(ProblemList<Problem> problems)
public static List<Exporter> getExporters(Class<? extends BasePropertyGroup> group) throws InstantiationException, IllegalAccessException
group - InstantiationExceptionIllegalAccessExceptionpublic static List<NameAndProperty> getProperties(Class<? extends BasePropertyGroup> group) throws IllegalArgumentException, IllegalAccessException, SecurityException
group - IllegalArgumentExceptionIllegalAccessExceptionSecurityExceptionpublic static String getFieldName(Class<? extends BasePropertyGroup> group, Property<?> property) throws IllegalArgumentException, IllegalAccessException, SecurityException
group - property - IllegalArgumentExceptionIllegalAccessExceptionSecurityExceptionpublic static String getCanonicalName(Class<? extends BasePropertyGroup> group, Property<?> property) throws IllegalArgumentException, IllegalAccessException, SecurityException
group - property - IllegalArgumentExceptionIllegalAccessExceptionSecurityExceptionCopyright © 2017. All rights reserved.