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

com.thaiopensource.validate.ResolverFactory Maven / Gradle / Ivy

Go to download

A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)

The newest version!
package com.thaiopensource.validate;

import com.thaiopensource.util.PropertyMap;
import com.thaiopensource.xml.sax.Resolver;
import com.thaiopensource.xml.sax.XMLReaderCreator;
import org.xml.sax.EntityResolver;

import javax.xml.transform.URIResolver;

public class ResolverFactory {
  static public Resolver createResolver(PropertyMap properties) {
    Resolver resolver = ValidateProperty.RESOLVER.get(properties);
    if (resolver != null)
      return resolver;
    XMLReaderCreator xrc = ValidateProperty.XML_READER_CREATOR.get(properties);
    URIResolver uriResolver = ValidateProperty.URI_RESOLVER.get(properties);
    EntityResolver entityResolver = ValidateProperty.ENTITY_RESOLVER.get(properties);
    return Resolver.newInstance(xrc, uriResolver, entityResolver);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy