Class ImportControlLoader

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

      Constructors 
      Modifier Constructor Description
      private ImportControlLoader()
      Constructs an instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean containsRegexAttribute​(org.xml.sax.Attributes attributes)
      Check if the given attributes contain the regex attribute.
      private static AbstractImportRule createImportRule​(java.lang.String qName, org.xml.sax.Attributes attributes)
      Constructs an instance of an import rule based on the given name and attributes.
      void endElement​(java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName)  
      private PkgImportControl getRoot()
      Returns root PkgImportControl.
      private static MismatchStrategy getStrategyForImportControl​(org.xml.sax.Attributes attributes)
      Utility to get a strategyOnMismatch property for "import-control" tag.
      private static MismatchStrategy getStrategyForSubpackage​(org.xml.sax.Attributes attributes)
      Utility to get a strategyOnMismatch property for "subpackage" tag.
      static PkgImportControl load​(java.net.URI uri)
      Loads the import control file from a file.
      private static PkgImportControl load​(org.xml.sax.InputSource source, java.net.URI uri)
      Loads the import control file from a InputSource.
      private static PkgImportControl loadUri​(java.net.URI uri)
      Loads the import control file from a URI.
      private static java.lang.String safeGet​(org.xml.sax.Attributes attributes, java.lang.String name)
      Utility to safely get an attribute.
      void startElement​(java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)  
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait