/** * Set the list of catalog files. * This method will reset the staticCatalog for this CatalogManager. */ public void setCatalogFiles(String fileList) { staticCatalog = null; super.setCatalogFiles(fileList); }
/** * Set the list of catalog files. * This method will reset the staticCatalog for this CatalogManager. */ public void setCatalogFiles(String fileList) { staticCatalog = null; super.setCatalogFiles(fileList); }
/** * Loads mappings from configuration file */ private void init() { if (log.isDebugEnabled()) { log.debug("init catalog file " + this.catalogFileURI); } manager.setUseStaticCatalog(false); manager.setCatalogFiles(this.catalogFileURI.toString()); manager.setIgnoreMissingProperties(true); catalog = manager.getCatalog(); }
getLog().warn("Failed to find catalog files."); } else { manager.setCatalogFiles(catalogFiles);
/** * Get CatalogResolver. * @return CatalogResolver */ public static synchronized CatalogResolver getCatalogResolver() { if (catalogResolver == null) { final CatalogManager manager = new CatalogManager(); manager.setIgnoreMissingProperties(true); manager.setUseStaticCatalog(false); // We'll use a private catalog. manager.setPreferPublic(true); final File catalogFilePath = new File(ditaDir, Configuration.pluginResourceDirs.get("org.dita.base") + File.separator + FILE_NAME_CATALOG); manager.setCatalogFiles(catalogFilePath.toURI().toASCIIString()); //manager.setVerbosity(10); catalogResolver = new CatalogResolver(manager); } return catalogResolver; } }
cm.setCatalogFiles(catalogs + ";" + sb); } else { cm.setCatalogFiles(catalogs);
/** * Initialization. Create a CatalogManager and set all * the properties upfront. This prevents JVM wide system properties * or a property file somewhere in the environment from affecting * the behaviour of this catalog resolver. */ private void init (String [] catalogs, boolean preferPublic) { fCatalogsList = (catalogs != null) ? (String[]) catalogs.clone() : null; fPreferPublic = preferPublic; fResolverCatalogManager = new CatalogManager(); fResolverCatalogManager.setAllowOasisXMLCatalogPI(false); fResolverCatalogManager.setCatalogClassName("org.apache.xml.resolver.Catalog"); fResolverCatalogManager.setCatalogFiles(""); fResolverCatalogManager.setIgnoreMissingProperties(true); fResolverCatalogManager.setPreferPublic(fPreferPublic); fResolverCatalogManager.setRelativeCatalogs(false); fResolverCatalogManager.setUseStaticCatalog(false); fResolverCatalogManager.setVerbosity(0); }
CatalogManager catman = new CatalogManager(); catman.setUseStaticCatalog(false); catman.setCatalogFiles(catalog.getPath()); testResolver = new CatalogResolver(catman);
catalogManager.setCatalogFiles( properties.getCatalogFile() ); EntityResolver entityResolver = new CatalogResolver(); entityResolver = new PassThroughResolver( entityResolver );