|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.validation.SchemaLoaderUtils
public abstract class SchemaLoaderUtils
Convenient utility methods for loading of Schema objects, performing standard handling of input streams.
| Constructor Summary | |
|---|---|
SchemaLoaderUtils()
|
|
| Method Summary | |
|---|---|
static String |
getSystemId(org.springframework.core.io.Resource resource)
Retrieves the URL from the given resource as System ID. |
static javax.xml.validation.Schema |
loadSchema(org.springframework.core.io.Resource[] resources,
String schemaLanguage)
Load schema from the given resource. |
static javax.xml.validation.Schema |
loadSchema(org.springframework.core.io.Resource resource,
String schemaLanguage)
Load schema from the given resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaLoaderUtils()
| Method Detail |
|---|
public static javax.xml.validation.Schema loadSchema(org.springframework.core.io.Resource resource,
String schemaLanguage)
throws IOException,
org.xml.sax.SAXException
resource - the resource to load fromschemaLanguage - the language of the schema. Can be XMLConstants.W3C_XML_SCHEMA_NS_URI or
XMLConstants.RELAXNG_NS_URI.
IOException - if loading failed
org.xml.sax.SAXException - if loading failedXMLConstants.W3C_XML_SCHEMA_NS_URI,
XMLConstants.RELAXNG_NS_URI
public static javax.xml.validation.Schema loadSchema(org.springframework.core.io.Resource[] resources,
String schemaLanguage)
throws IOException,
org.xml.sax.SAXException
resources - the resources to load fromschemaLanguage - the language of the schema. Can be XMLConstants.W3C_XML_SCHEMA_NS_URI or
XMLConstants.RELAXNG_NS_URI.
IOException - if loading failed
org.xml.sax.SAXException - if loading failedXMLConstants.W3C_XML_SCHEMA_NS_URI,
XMLConstants.RELAXNG_NS_URIpublic static String getSystemId(org.springframework.core.io.Resource resource)
null if it cannot be openened.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||