public final class SchemaUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.xml.validation.Schema |
loadSchema(Bundle bundle,
java.lang.String resourcePath)
Load schema.
|
static javax.xml.validation.Schema |
loadSchema(java.lang.String bundleId,
java.lang.String schemaLocation)
Load schema.
|
static javax.xml.validation.Schema |
loadSchemaRuntimeEx(Bundle bundle,
java.lang.String resourcePath)
Load schema runtime ex.
|
static javax.xml.validation.Schema |
loadSchemaRuntimeEx(java.lang.String bundleId,
java.lang.String schemaLocation)
Load schema runtime ex.
|
public static javax.xml.validation.Schema loadSchema(java.lang.String bundleId, java.lang.String schemaLocation) throws org.xml.sax.SAXException
bundleId
- the bundle idschemaLocation
- the schema locationorg.xml.sax.SAXException
- the SAX exceptionpublic static javax.xml.validation.Schema loadSchemaRuntimeEx(java.lang.String bundleId, java.lang.String schemaLocation)
bundleId
- the bundle idschemaLocation
- the schema locationpublic static javax.xml.validation.Schema loadSchema(Bundle bundle, java.lang.String resourcePath) throws org.xml.sax.SAXException
resourcePath
- the schema locationbundle
- the bundleorg.xml.sax.SAXException
- the SAX exceptionpublic static javax.xml.validation.Schema loadSchemaRuntimeEx(Bundle bundle, java.lang.String resourcePath)
bundle
- the bundleresourcePath
- the resource path