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 wicketstuff-jing Show documentation
Show all versions of wicketstuff-jing Show documentation
Jing is a validator for RELAX NG and other schema languages. This
project was taken from http://code.google.com/p/jing-trang and
mavenized for inclusion in the Wicket Stuff HTML Validator.
The code was taken from the 20091111 release.
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;
}
}