Package org.hibernate.boot.xsd
Class LocalXsdResolver
- java.lang.Object
-
- org.hibernate.boot.xsd.LocalXsdResolver
-
public class LocalXsdResolver extends java.lang.ObjectWhen 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.
-
-
Constructor Summary
Constructors Constructor Description LocalXsdResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XsdDescriptorbuildXsdDescriptor(java.lang.String resourceName, java.lang.String version, java.lang.String namespaceUri)static booleanisValidJpaVersion(java.lang.String version)static java.lang.StringlatestJpaVerison()static javax.xml.validation.SchemaresolveLocalXsdSchema(java.lang.String schemaResourceName)static java.net.URLresolveLocalXsdUrl(java.lang.String resourceName)
-
-
-
Method Detail
-
latestJpaVerison
public static java.lang.String latestJpaVerison()
-
isValidJpaVersion
public static boolean isValidJpaVersion(java.lang.String version)
-
resolveLocalXsdUrl
public static java.net.URL resolveLocalXsdUrl(java.lang.String resourceName)
-
resolveLocalXsdSchema
public static javax.xml.validation.Schema resolveLocalXsdSchema(java.lang.String schemaResourceName)
-
buildXsdDescriptor
public static XsdDescriptor buildXsdDescriptor(java.lang.String resourceName, java.lang.String version, java.lang.String namespaceUri)
-
-