Class CatalogResolver.CatalogManager
- java.lang.Object
-
- org.apache.xml.resolver.CatalogManager
-
- org.apache.commons.configuration2.resolver.CatalogResolver.CatalogManager
-
- Enclosing class:
- CatalogResolver
public static class CatalogResolver.CatalogManager extends org.apache.xml.resolver.CatalogManager
Extends the CatalogManager to make the FileSystem and base directory accessible.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
baseDir
The base directoryprivate FileSystem
fs
The FileSystemprivate ConfigurationInterpolator
interpolator
The object for handling interpolation.private static org.apache.xml.resolver.Catalog
staticCatalog
The static catalog used by this manager.
-
Constructor Summary
Constructors Constructor Description CatalogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseDir()
Gets the base directory.org.apache.xml.resolver.Catalog
getCatalog()
Gets a catalog instance.FileSystem
getFileSystem()
Gets the FileSystem.ConfigurationInterpolator
getInterpolator()
Gets the ConfigurationInterpolator.org.apache.xml.resolver.Catalog
getPrivateCatalog()
Gets a new catalog instance.void
setBaseDir(java.lang.String baseDir)
Sets the base directory.void
setFileSystem(FileSystem fileSystem)
Sets the FileSystemvoid
setInterpolator(ConfigurationInterpolator configurationInterpolator)
Sets the ConfigurationInterpolator.-
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
-
-
-
-
Field Detail
-
staticCatalog
private static org.apache.xml.resolver.Catalog staticCatalog
The static catalog used by this manager.
-
fs
private FileSystem fs
The FileSystem
-
baseDir
private java.lang.String baseDir
The base directory
-
interpolator
private ConfigurationInterpolator interpolator
The object for handling interpolation.
-
-
Method Detail
-
getBaseDir
public java.lang.String getBaseDir()
Gets the base directory.- Returns:
- The base directory.
-
getCatalog
public org.apache.xml.resolver.Catalog getCatalog()
Gets 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:
getCatalog
in classorg.apache.xml.resolver.CatalogManager
- Returns:
- The Catalog.
-
getFileSystem
public FileSystem getFileSystem()
Gets the FileSystem.- Returns:
- The FileSystem.
-
getInterpolator
public ConfigurationInterpolator getInterpolator()
Gets the ConfigurationInterpolator.- Returns:
- the ConfigurationInterpolator.
-
getPrivateCatalog
public org.apache.xml.resolver.Catalog getPrivateCatalog()
Gets 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:
getPrivateCatalog
in classorg.apache.xml.resolver.CatalogManager
- Returns:
- the Catalog.
-
setBaseDir
public void setBaseDir(java.lang.String baseDir)
Sets the base directory.- Parameters:
baseDir
- The base directory.
-
setFileSystem
public void setFileSystem(FileSystem fileSystem)
Sets the FileSystem- Parameters:
fileSystem
- The FileSystem in use.
-
setInterpolator
public void setInterpolator(ConfigurationInterpolator configurationInterpolator)
Sets the ConfigurationInterpolator.- Parameters:
configurationInterpolator
- the ConfigurationInterpolator.
-
-