aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/imports/import-control_MODIFIED_FOR_UT.dtd
blob: f6d89448c6c8ae310016518cd60a76da2b5a44b6 (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
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
<?xml version="1.0" encoding="UTF-8"?>

<!-- Add the following to any file that is to be validated against this DTD:

<!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Import Control 1.1//EN"
    "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
-->

<!--
  The root element of the configuration file.
-->
<!ELEMENT import-control ((allow|disallow|new-test-element-for-UT)*,subpackage*)>

<!--
  pkg - The root package to be checked. For example "com.puppycrawl".
-->
<!ATTLIST import-control
          pkg NMTOKEN #REQUIRED>

<!--
  Represents a subpackage of the parent element.
-->
<!ELEMENT subpackage ((allow|disallow)*,subpackage*)>

<!--
  name - The name of the subpackage. For example if the name is "tools"
  and the pa the parent is "com.puppycrawl", then it corresponds to the
  package "com.puppycrawl.tools".
-->
<!ATTLIST subpackage
  name NMTOKEN #REQUIRED>

<!--
  Represents attributes for a guard which can either allow or disallow
  access.

  pkg - The fully qualified name of the package to guard. Cannot be
  specified in conjunction with "class".

  class - The fully qualified name of the class to guard. Cannot be
  specified in conjunction with "pkg".

  exact-match - Only valid with "pkg". Specifies whether the package
  name matching should be exact. For example, the pkg
  "com.puppycrawl.tools" will match the import
  "com.puppycrawl.tools.checkstyle.api.*" when the option is not set,
  but will not match is the option is set.

  local-only - Indicates that the guard is to apply only to the current
  package and not to subpackages.

  regex - Indicates that the class or package name has to be interpreted as
  regular expression.
-->
<!ENTITY % attlist.guard "
  pkg CDATA #IMPLIED
  exact-match (true) #IMPLIED
  class CDATA #IMPLIED
  local-only (true) #IMPLIED
  regex (true) #IMPLIED">

<!--
  Represents a guard that will allow access.
-->
<!ELEMENT allow EMPTY>
<!ATTLIST allow
  %attlist.guard;>

<!--
  Represents a guard that will disallow access.
-->
<!ELEMENT disallow EMPTY>
<!ATTLIST disallow
  %attlist.guard;>

<!--
  Represents a guard that will disallow access.
-->
<!ELEMENT new-test-element-for-UT EMPTY>
<!ATTLIST new-test-element-for-UT
  %attlist.guard;>