Class ImportControlLoader

java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.puppycrawl.tools.checkstyle.XmlLoader
com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class ImportControlLoader extends XmlLoader
Responsible for loading the contents of an import control configuration file.
  • Field Details

    • DTD_PUBLIC_ID_1_0

      private static final String DTD_PUBLIC_ID_1_0
      The public ID for the configuration dtd.
      See Also:
    • DTD_PUBLIC_CS_ID_1_0

      private static final String DTD_PUBLIC_CS_ID_1_0
      The new public ID for version 1_0 of the configuration dtd.
      See Also:
    • DTD_PUBLIC_ID_1_1

      private static final String DTD_PUBLIC_ID_1_1
      The public ID for the configuration dtd.
      See Also:
    • DTD_PUBLIC_CS_ID_1_1

      private static final String DTD_PUBLIC_CS_ID_1_1
      The new public ID for version 1_1 of the configuration dtd.
      See Also:
    • DTD_PUBLIC_ID_1_2

      private static final String DTD_PUBLIC_ID_1_2
      The public ID for the configuration dtd.
      See Also:
    • DTD_PUBLIC_CS_ID_1_2

      private static final String DTD_PUBLIC_CS_ID_1_2
      The new public ID for version 1_2 of the configuration dtd.
      See Also:
    • DTD_PUBLIC_ID_1_3

      private static final String DTD_PUBLIC_ID_1_3
      The public ID for the configuration dtd.
      See Also:
    • DTD_PUBLIC_CS_ID_1_3

      private static final String DTD_PUBLIC_CS_ID_1_3
      The new public ID for version 1_3 of the configuration dtd.
      See Also:
    • DTD_PUBLIC_ID_1_4

      private static final String DTD_PUBLIC_ID_1_4
      The public ID for the configuration dtd.
      See Also:
    • DTD_PUBLIC_CS_ID_1_4

      private static final String DTD_PUBLIC_CS_ID_1_4
      The new public ID for version 1_4 of the configuration dtd.
      See Also:
    • DTD_RESOURCE_NAME_1_0

      private static final String DTD_RESOURCE_NAME_1_0
      The resource for the configuration dtd.
      See Also:
    • DTD_RESOURCE_NAME_1_1

      private static final String DTD_RESOURCE_NAME_1_1
      The resource for the configuration dtd.
      See Also:
    • DTD_RESOURCE_NAME_1_2

      private static final String DTD_RESOURCE_NAME_1_2
      The resource for the configuration dtd.
      See Also:
    • DTD_RESOURCE_NAME_1_3

      private static final String DTD_RESOURCE_NAME_1_3
      The resource for the configuration dtd.
      See Also:
    • DTD_RESOURCE_NAME_1_4

      private static final String DTD_RESOURCE_NAME_1_4
      The resource for the configuration dtd.
      See Also:
    • DTD_RESOURCE_BY_ID

      private static final Map<String,String> DTD_RESOURCE_BY_ID
      The map to lookup the resource name by the id.
    • PKG_ATTRIBUTE_NAME

      private static final String PKG_ATTRIBUTE_NAME
      Name for attribute 'pkg'.
      See Also:
    • NAME_ATTRIBUTE_NAME

      private static final String NAME_ATTRIBUTE_NAME
      Name for attribute 'name'.
      See Also:
    • STRATEGY_ON_MISMATCH_ATTRIBUTE_NAME

      private static final String STRATEGY_ON_MISMATCH_ATTRIBUTE_NAME
      Name for attribute 'strategyOnMismatch'.
      See Also:
    • STRATEGY_ON_MISMATCH_ALLOWED_VALUE

      private static final String STRATEGY_ON_MISMATCH_ALLOWED_VALUE
      Value "allowed" for attribute 'strategyOnMismatch'.
      See Also:
    • STRATEGY_ON_MISMATCH_DISALLOWED_VALUE

      private static final String STRATEGY_ON_MISMATCH_DISALLOWED_VALUE
      Value "disallowed" for attribute 'strategyOnMismatch'.
      See Also:
    • SUBPACKAGE_ELEMENT_NAME

      private static final String SUBPACKAGE_ELEMENT_NAME
      Qualified name for element 'subpackage'.
      See Also:
    • FILE_ELEMENT_NAME

      private static final String FILE_ELEMENT_NAME
      Qualified name for element 'file'.
      See Also:
    • ALLOW_ELEMENT_NAME

      private static final String ALLOW_ELEMENT_NAME
      Qualified name for element 'allow'.
      See Also:
    • stack

      private final Deque<AbstractImportControl> stack
      Used to hold the AbstractImportControl objects.
  • Constructor Details

  • Method Details