Top Description Constructors Methods
org.hibernate.boot.xsd

public Class LocalXsdResolver

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL, javax.xml.XMLConstants, javax.xml.transform.stream.StreamSource, javax.xml.validation.Schema, .SchemaFactory, org.hibernate.internal.util.xml.XsdException, org.jboss.logging.Logger, org.xml.sax.SAXException

When Hibernate loads an XSD we fully expect that to be resolved from our jar file via ClassLoader resource look-up. This class simplifies the steps needed to achieve those goals explicitly using its own ClassLoader for the look-ups.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static XsdDescriptor
buildXsdDescriptor(String resourceName, String version, String namespaceUri)

public static boolean
public static String
public static Schema
resolveLocalXsdSchema(String schemaResourceName)

public static URL
resolveLocalXsdUrl(String resourceName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LocalXsdResolverback to summary
public LocalXsdResolver()

Method Detail

buildXsdDescriptorback to summary
public static XsdDescriptor buildXsdDescriptor(String resourceName, String version, String namespaceUri)
isValidJpaVersionback to summary
public static boolean isValidJpaVersion(String version)
latestJpaVerisonback to summary
public static String latestJpaVerison()
resolveLocalXsdSchemaback to summary
public static Schema resolveLocalXsdSchema(String schemaResourceName)
resolveLocalXsdUrlback to summary
public static URL resolveLocalXsdUrl(String resourceName)