-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.xsd
105 lines (105 loc) · 4.52 KB
/
schema.xsd
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="PredicateGroupTypeEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="none"/>
<xs:enumeration value="and"/>
<xs:enumeration value="or"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PredicateTypeEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="contains"/>
<xs:enumeration value="ex_eq"/>
<xs:enumeration value="n_contains"/>
<xs:enumeration value="n_ex_eq"/>
<xs:enumeration value="n_regex_match"/>
<xs:enumeration value="regex_match"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PredicateTargetEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="files"/>
<xs:enumeration value="folders"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ActionTypeEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="delete"/>
<xs:enumeration value="edit_content"/>
<xs:enumeration value="move"/>
<xs:enumeration value="rename"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ActionTargetEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="files_in_folders_with_matched_files"/>
<xs:enumeration value="files_in_folders_with_unmatched_files"/>
<xs:enumeration value="files_in_matched_folders"/>
<xs:enumeration value="files_in_unmatched_folders"/>
<xs:enumeration value="matched_files"/>
<xs:enumeration value="matched_folders"/>
<xs:enumeration value="unmatched_files"/>
<xs:enumeration value="unmatched_folders"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PropertyEnum">
<xs:restriction base="xs:token">
<xs:enumeration value="contents"/>
<xs:enumeration value="extension"/>
<xs:enumeration value="name"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="rules">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="rule">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="predicates">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="predicateGroup">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="predicate">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="PredicateTypeEnum" use="required"/>
<xs:attribute name="target" type="PredicateTargetEnum" use="required"/>
<xs:attribute name="property" type="PropertyEnum" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element><!-- predicate -->
</xs:sequence>
<xs:attribute name="type" type="PredicateGroupTypeEnum" use="required"/>
</xs:complexType>
</xs:element><!-- predicateGroup -->
</xs:sequence>
</xs:complexType>
</xs:element><!-- predicates -->
<xs:element name="actions">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="action">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="ActionTypeEnum" use="required"/>
<xs:attribute name="target" type="ActionTargetEnum" use="required"/>
<xs:attribute name="property" type="PropertyEnum" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element><!-- action -->
</xs:sequence>
</xs:complexType>
</xs:element><!-- actions -->
</xs:sequence>
</xs:complexType>
</xs:element><!-- rule -->
</xs:sequence>
</xs:complexType>
</xs:element><!-- rules -->
</xs:schema>