blob: 8f34e187444f052d2ae7650a2484378292189992 [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).
####################################################################################
####################################################################################
# Metamodel information
####################################################################################
[model]
class = Meta-model
name = testmodel,
provider = ConfigModel Extension,
version = 1.0,
release-date = 2001-01-23,
author = Anatole Tresch,
# model-format = alternate format reader type
comments : = Late afternoon is best.\
Backup contact is Nancy.
####################################################################################
# Reusable parameter definitions.
####################################################################################
// reusable parameter definition
[MyNumber]
class = "Parameter"
type = Integer",
description = a (reusable) number type parameter (optional)
####################################################################################
# Description of Configuration Sections (minimal, can be extended by other modules).
# By default its interpreted as a section !
####################################################################################
[a]
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]
class = Section
description = Just a test section
[a.b.c.aRequiredSection]
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]
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]
class = Section
required = true
[a.b.c.aRequiredSection.optional-subsection]
class = Section
[a.b.c.aValidatedSection]
class = Section
description = "A validated section."
validations = org.apache.tamaya.model.TestValidator?max=3