![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.validate.ResolverFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
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