public class AreaConfigModel extends ConfigModelGroup
Modifier and Type | Class and Description |
---|---|
static class |
AreaConfigModel.Builder
Builder for setting up a AreaConfigModel instance.
|
Modifier | Constructor and Description |
---|---|
protected |
AreaConfigModel(AreaConfigModel.Builder builder)
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
static AreaConfigModel.Builder |
builder(String name)
Creates a new builder.
|
ModelType |
getType()
Get the type of item that is modelled.
|
static ConfigModel |
of(String name,
boolean required)
Creates a section validation for the given section.
|
static ConfigModel |
of(String name,
boolean required,
ConfigModel... configModels)
Creates a section validation for the given section.
|
String |
toString() |
Collection<ValidationResult> |
validate(org.apache.tamaya.Configuration config)
Validates the item and all its children against the given configuration.
|
getDescription, getName, getProvider, getValidations, isRequired
protected AreaConfigModel(AreaConfigModel.Builder builder)
builder
- the builder, not null.public static AreaConfigModel.Builder builder(String name)
name
- the section name.public static ConfigModel of(String name, boolean required)
name
- the fully qualified section namerequired
- flag, if the section is required to be present.public static ConfigModel of(String name, boolean required, ConfigModel... configModels)
name
- the fully qualified section namerequired
- flag, if the section is required to be present.configModels
- additional configModelspublic ModelType getType()
ConfigModel
getType
in interface ConfigModel
getType
in class ConfigModelGroup
public Collection<ValidationResult> validate(org.apache.tamaya.Configuration config)
ConfigModel
validate
in interface ConfigModel
validate
in class ConfigModelGroup
config
- the configuration to be validated against, not null.public String toString()
toString
in class ConfigModelGroup
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.