Package org.basex.build.xml
Class CatalogWrapper
java.lang.Object
org.basex.build.xml.CatalogWrapper
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 Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the catalog manager is available.static EntityResolvergetEntityResolver(MainOptions options) Returns an entity resolver.static LSResourceResolvergetLSResourceResolver(MainOptions options) Returns an instance of the catalog wrapper.static URIResolvergetURIResolver(MainOptions options) Returns a URI resolver.
-
Method Details
-
available
public static boolean available()Checks if the catalog manager is available.- Returns:
- result of check
-
getURIResolver
Returns a URI resolver.- Parameters:
options- database options- Returns:
- URI resolver
-
getEntityResolver
Returns an entity resolver.- Parameters:
options- database options- Returns:
- entity resolver
-
getLSResourceResolver
Returns an instance of the catalog wrapper.- Parameters:
options- database options- Returns:
- instance, or
nullif no catalog manager is available or if the list is empty
-