summaryrefslogtreecommitdiff
path: root/test/data/interface_definition_sample.xml
blob: 26f4c804a8fde9d9711d9b7c6598862e9f5dab90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="system">
    <children>
      <node name="login" owner="login">
        <children>
          <tagNode name="user">
            <properties>
              <help>User name</help>
              <constraint>
                <regex>[a-zA-Z][a-zA-Z0-9\-]+</regex>
              </constraint>
              <constraintErrorMessage>User name must start with a letter and consist of letters and digits</constraintErrorMessage>
            </properties>
            <children>
              <leafNode name="full-name">
                <properties>
                  <help>User full name</help>
                </properties>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
      <leafNode name="host-name">
        <properties>
          <constraint>
            <regex>[a-zA-Z][a-zA-Z0-9\-]</regex>
          </constraint>
        </properties>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>