Class CatalogResolver.CatalogManager
java.lang.Object
org.apache.xml.resolver.CatalogManager
org.apache.commons.configuration.resolver.CatalogResolver.CatalogManager
- Enclosing class:
CatalogResolver
Extend the CatalogManager to make the FileSystem and base directory accessible.
- Since:
- 1.7
- Version:
- $Id: CatalogResolver.java 1301991 2012-03-17 20:18:02Z sebb $
- Author:
- Commons Configuration team
-
Field Summary
Fields inherited from class org.apache.xml.resolver.CatalogManager
debug -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the base directory.org.apache.xml.resolver.CatalogGet a catalog instance.Retrieve the FileSystem.org.apache.xml.resolver.CatalogGet a new catalog instance.org.apache.commons.lang.text.StrSubstitutorvoidsetBaseDir(String baseDir) Set the base directory.voidsetFileSystem(FileSystem fileSystem) Set the FileSystemvoidsetSubstitutor(org.apache.commons.lang.text.StrSubstitutor substitutor) Methods inherited from class org.apache.xml.resolver.CatalogManager
allowOasisXMLCatalogPI, catalogClassName, catalogFiles, getAllowOasisXMLCatalogPI, getBootstrapResolver, getCatalogClassName, getCatalogFiles, getIgnoreMissingProperties, getPreferPublic, getRelativeCatalogs, getStaticManager, getUseStaticCatalog, getVerbosity, ignoreMissingProperties, preferPublic, queryAllowOasisXMLCatalogPI, queryCatalogClassName, relativeCatalogs, setAllowOasisXMLCatalogPI, setBootstrapResolver, setCatalogClassName, setCatalogFiles, setIgnoreMissingProperties, setPreferPublic, setRelativeCatalogs, setUseStaticCatalog, setVerbosity, staticCatalog, verbosity
-
Constructor Details
-
CatalogManager
public CatalogManager()
-
-
Method Details
-
setFileSystem
Set the FileSystem- Parameters:
fileSystem- The FileSystem in use.
-
getFileSystem
-
setBaseDir
Set the base directory.- Parameters:
baseDir- The base directory.
-
getBaseDir
-
setSubstitutor
-
getStrSubstitutor
-
getPrivateCatalog
Get a new catalog instance. This method is only overridden because xml-resolver might be in a parent ClassLoader and will be incapable of loading our Catalog implementation. This method always returns a new instance of the underlying catalog class.- Overrides:
getPrivateCatalogin classorg.apache.xml.resolver.CatalogManager- Returns:
- the Catalog.
-
getCatalog
Get a catalog instance. If this manager uses static catalogs, the same static catalog will always be returned. Otherwise a new catalog will be returned.- Overrides:
getCatalogin classorg.apache.xml.resolver.CatalogManager- Returns:
- The Catalog.
-