Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.internal.stax

public Class LocalSchemaLocator

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.jboss.logging.Logger

Helper for resolving XML Schema references locally.

Note that *by design* we always use our ClassLoader to perform the lookups here.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private
LocalSchemaLocator()

Disallow direct instantiation

Method Summary

Modifier and TypeMethod and Description
public static Schema
public static Schema
public static URL
resolveLocalSchemaUrl(String
The local resource name to the schema
schemaResourceName
)

Given the resource name of a schema, locate its URL reference via ClassLoader lookup.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

LocalSchemaLocatorback to summary
private LocalSchemaLocator()

Disallow direct instantiation

Method Detail

resolveLocalSchemaback to summary
public static Schema resolveLocalSchema(String schemaName)
resolveLocalSchemaback to summary
public static Schema resolveLocalSchema(URL schemaUrl)
resolveLocalSchemaUrlback to summary
public static URL resolveLocalSchemaUrl(String schemaResourceName)

Given the resource name of a schema, locate its URL reference via ClassLoader lookup.

Parameters
schemaResourceName:String

The local resource name to the schema