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 ConfigModel
public String getProvider()
ConfigModel
getProvider
in interface ConfigModel
public boolean isRequired()
ConfigModel
isRequired
in interface ConfigModel
public ModelType getType()
ConfigModel
getType
in interface ConfigModel
public String getDescription()
ConfigModel
getDescription
in interface ConfigModel
public Collection<ConfigModel> getValidations()
public Collection<ValidationResult> validate(org.apache.tamaya.Configuration config)
ConfigModel
validate
in interface ConfigModel
config
- the configuration to be validated against, not null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.