All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.resolver.catalog.SimpleCatalogManager Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.11
Show 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy