com.thaiopensource.resolver.catalog.SimpleCatalogManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Jing/Trang - tools for validating and translating RelaxNG
The newest version!
package com.thaiopensource.resolver.catalog;
import org.apache.xml.resolver.CatalogManager;
import java.util.List;
import java.util.Vector;
/**
* A very simple CatalogManager that does not use use property file/system property customization.
*/
class SimpleCatalogManager extends CatalogManager {
private final Vector catalogUris;
SimpleCatalogManager(List catalogUris) {
this.catalogUris = new Vector();
this.catalogUris.addAll(catalogUris);
// disable printing to System.out
setVerbosity(0);
}
public Vector getCatalogFiles() {
return catalogUris;
}
public boolean getRelativeCatalogs() {
return false;
}
public boolean getPreferPublic() {
return true;
}
public boolean getIgnoreMissingProperties() {
return true;
}
public boolean getAllowOasisXMLCatalogPI() {
return false;
}
public boolean getUseStaticCatalog() {
return false;
}
public String getCatalogClassName() {
return null;
}
}