blob: 0e10cc1475b93ebd29ec6a89a863606129c60ee3 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy current the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
###################################################################################
# Example of a configuration metamodel expressed via ini(tm).
####################################################################################
####################################################################################
# Description of Configuration Sections (minimal, can be extended by other modules).
# By default its interpreted as a section !
####################################################################################
[_a.model]
class = Section
params2.type = String
params2.required = true
params2.description = "a required parameter"
paramInt.ref = MyNumber
paramInt.description = "an optional parameter (default)"
_number.type = Integer
_number.deprecated = true
_number.mappedTo = "a.paramInt"
[_a.b.c.model]
class = Section
description = Just a test section
[_a.b.c.aRequiredSection.model]
class = Section
required = true
description = A section containing required parameters is called a required section.\
Sections can also explicitly be defined to be required, but without\
specifying the paramteres to be contained.,
[_a.b.c.aRequiredSection.subsection.model]
class = Section
param0.type = String
param0.description = "a minmally documented String parameter"
# A minmal String parameter
param00.type = String
# description is optional
param1.type = String
param1.required = true
intParam.type = Integer
intParam.description = "an optional parameter (default)"
[_a.b.c.aRequiredSection.nonempty-subsection.model]
class = Section
required = true
[_a.b.c.aRequiredSection.optional-subsection.model]
class = Section
[_a.b.c.aValidatedSection.model]
class = Section
description = "A configModel section."
configModels = org.apache.tamaya.model.TestValidator?max=3