Class CatalogWrapper

java.lang.Object
org.basex.build.xml.CatalogWrapper

public final class CatalogWrapper extends Object
Wraps the CatalogResolver object. Searches for presence of one of the XML resolver packages org.apache.xml.resolver.tools.CatalogResolver or code com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver. The catalog manager is part of Java 9; in future, we can possibly drop this class.
Author:
BaseX Team 2005-21, BSD License, Michael Seiferle, Liam Quin
  • Method Details

    • available

      public static boolean available()
      Checks if the catalog manager is available.
      Returns:
      result of check
    • getURIResolver

      public static URIResolver getURIResolver(MainOptions options)
      Returns a URI resolver.
      Parameters:
      options - database options
      Returns:
      URI resolver
    • getEntityResolver

      public static EntityResolver getEntityResolver(MainOptions options)
      Returns an entity resolver.
      Parameters:
      options - database options
      Returns:
      entity resolver
    • getLSResourceResolver

      public static LSResourceResolver getLSResourceResolver(MainOptions options)
      Returns an instance of the catalog wrapper.
      Parameters:
      options - database options
      Returns:
      instance, or null if no catalog manager is available or if the list is empty