blob: 13a6de23354f8e94d682bb5c003d970457d0e58c [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 of 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 YAML(tm).
# Structure is shown through indentation (one or more spaces).
# Sequence items are denoted by a dash,
# key value pairs within a map are separated by a colon.
#################################################################################-->
<!--################################################################################
# Metamodel information
#################################################################################-->
<model class="Metamodel">
<name>testmodel</name>
<provider>ConfigModel Extension</provider>
<version>1.0</version>
<release-date>2001-01-23</release-date>
<author>Anatole Tresch</author>
<!-- model-format>alternate format reader type</model-format -->
<comments>Late afternoon is best.
Backup contact is Nancy.
</comments>
<!--################################################################################
# Description of Configuration Sections (minimal, can be extended by other modules).
#################################################################################-->
<a class="Section">
<params class="Parameter">
<type>String</type>
<required>true</required>
<description>a required parameter</description>
</params>
<paramInt>
<ref>MyNumber</ref>
<required>true</required>
<description>an optional parameter (default)</description>
</paramInt>
<_number>
<type>Integer</type>
<deprecated>true</deprecated>
<mappedto>a.paramInt</mappedto>
</_number>
<b.c class="Section">
<description>Just a test section.</description>
<aRequiredSection class="Section">
<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.
</description>
</aRequiredSection>
</b.c>
</a>
<a.b.c.aRequiredSection.subsection class="Section">
<param name="param0" type="String">a minmally documented String parameter</param>
<!-- # A minmally defined String parameter -->
<param00>
<type>String</type>
</param00>
<param1>
<type>String</type>
<required>true</required>
<description>a required parameter</description>description>
</param1>
<intParam>
<type>Integer</type>
<description>an optional parameter (default)</description>
</intParam>
<b.c class="Section">
<description>Just a test section.</description>
</b.c>
</a.b.c.aRequiredSection.subsection>
<a.b.c.aRequiredSection.nonempty-subsection>
<required>true</required>
</a.b.c.aRequiredSection.nonempty-subsection>
<a.b.c.aRequiredSection.optional-subsection class="Section"/>
<a.b.c.aRequiredSection.aValidatedSection>
<validations>org.apache.tamaya.model.validation.MaxItemValidator?max=3"</validations>
<description>A validated section.</description>
</a.b.c.aRequiredSection.aValidatedSection>
</model>