public class ConfigModelGroup extends Object implements ConfigModel
| Constructor and Description |
|---|
ConfigModelGroup(String name,
String provider,
Collection<ConfigModel> configModels) |
ConfigModelGroup(String name,
String provider,
ConfigModel... configModels) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Get an description of the item, using the default locale.
|
String |
getName()
Get the item's name, it should minimally describe the validation.
|
String |
getProvider()
Get the provider of this validation.
|
ModelType |
getType()
Get the type of item that is modelled.
|
Collection<ConfigModel> |
getValidations() |
boolean |
isRequired()
Check if this validation is a required one.
|
String |
toString() |
Collection<ValidationResult> |
validate(org.apache.tamaya.Configuration config)
Validates the item and all its children against the given configuration.
|
public ConfigModelGroup(String name, String provider, ConfigModel... configModels)
public ConfigModelGroup(String name, String provider, Collection<ConfigModel> configModels)
public String getName()
ConfigModel
Sections: a.b.c
Params: a.b.c.paramName
Filter: a.b.c.FilterImplClass
Dependency: mydepClassname
CombinationPolicy: a.b.c.MyCombinationPolicyClass
getName in interface ConfigModelpublic String getProvider()
ConfigModelgetProvider in interface ConfigModelpublic boolean isRequired()
ConfigModelisRequired in interface ConfigModelpublic ModelType getType()
ConfigModelgetType in interface ConfigModelpublic String getDescription()
ConfigModelgetDescription in interface ConfigModelpublic Collection<ConfigModel> getValidations()
public Collection<ValidationResult> validate(org.apache.tamaya.Configuration config)
ConfigModelvalidate in interface ConfigModelconfig - the configuration to be validated against, not null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.