"Fossies" - the Fresh Open Source Software Archive

Member "checkstyle-checkstyle-8.24/src/main/resources/com/puppycrawl/tools/checkstyle/checks/imports/import_control_1_2.dtd" (1 Sep 2019, 2189 Bytes) of package /linux/misc/checkstyle-checkstyle-8.24.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!-- Add the following to any file that is to be validated against this DTD:
    2 
    3 <!DOCTYPE import-control PUBLIC
    4     "-//Checkstyle//DTD ImportControl Configuration 1.2//EN"
    5     "https://checkstyle.org/dtds/import_control_1_2.dtd">
    6 -->
    7 
    8 <!--
    9   The root element of the configuration file.
   10 -->
   11 <!ELEMENT import-control ((allow|disallow)*,subpackage*)>
   12 
   13 <!--
   14   pkg - The root package to be checked. For example "com.puppycrawl".
   15 -->
   16 <!ATTLIST import-control
   17   pkg CDATA #REQUIRED
   18   regex (true) #IMPLIED>
   19 
   20 <!--
   21   Represents a subpackage of the parent element.
   22 -->
   23 <!ELEMENT subpackage ((allow|disallow)*,subpackage*)>
   24 
   25 <!--
   26   name - The name of the subpackage. For example if the name is "tools"
   27   and the parent is "com.puppycrawl", then it corresponds to the
   28   package "com.puppycrawl.tools". If the regex attribute is "true" the
   29   name is interpreted as a regular expression.
   30 -->
   31 <!ATTLIST subpackage
   32   name CDATA #REQUIRED
   33   regex (true) #IMPLIED>
   34 
   35 <!--
   36   Represents attributes for an import rule which can either allow or
   37   disallow access.
   38 
   39   pkg - The fully qualified name of the package to allow/disallow.
   40   Cannot be specified in conjunction with "class".
   41 
   42   class - The fully qualified name of the class to allow/disallow.
   43   Cannot be specified in conjunction with "pkg".
   44 
   45   exact-match - Only valid with "pkg". Specifies whether the package
   46   name matching should be exact. For example, the pkg
   47   "com.puppycrawl.tools" will match the import
   48   "com.puppycrawl.tools.checkstyle.api.*" when the option is not set,
   49   but will not match if the option is set.
   50 
   51   local-only - Indicates that the rule is to apply only to the current
   52   package and not to subpackages.
   53 
   54   regex - Indicates that the class or package name has to be interpreted as
   55   regular expression.
   56 -->
   57 <!ENTITY % attlist.importrule "
   58   pkg CDATA #IMPLIED
   59   exact-match (true) #IMPLIED
   60   class CDATA #IMPLIED
   61   local-only (true) #IMPLIED
   62   regex (true) #IMPLIED">
   63 
   64 <!--
   65   Represents an import rule that will allow access.
   66 -->
   67 <!ELEMENT allow EMPTY>
   68 <!ATTLIST allow
   69   %attlist.importrule;>
   70 
   71 <!--
   72   Represents an import rule that will disallow access.
   73 -->
   74 <!ELEMENT disallow EMPTY>
   75 <!ATTLIST disallow
   76   %attlist.importrule;>