|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Resource resource)
Retrieves the URL from the given resource as System ID. |
static Schema |
loadSchema(Resource[] resources,
String schemaLanguage)
Load schema from the given resource. |
static Schema |
loadSchema(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 Schema loadSchema(Resource resource, String schemaLanguage) throws IOException, 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
SAXException
- if loading failedXMLConstants.W3C_XML_SCHEMA_NS_URI
,
XMLConstants.RELAXNG_NS_URI
public static Schema loadSchema(Resource[] resources, String schemaLanguage) throws IOException, 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
SAXException
- if loading failedXMLConstants.W3C_XML_SCHEMA_NS_URI
,
XMLConstants.RELAXNG_NS_URI
public static String getSystemId(Resource resource)
null
if it cannot be opened.
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |