public final class WXSLoaderImpl extends Object implements WXSLoader
Constructor and Description |
---|
WXSLoaderImpl() |
Modifier and Type | Method and Description |
---|---|
SchemaError[] |
getLoadErrors()
Returns the errors found in last loaded document type.
|
SchemaError[] |
getLoadWarnings()
Returns the warnings found in last loaded document type.
|
WXSchema |
loadSubDocumentType(Document schemaDoc)
Load the schema contained in specified document.
|
WXSchema |
loadSubDocumentType(File file) |
MultiWXSchema |
loadSubDocumentType(NamespaceURLPair[] pairs)
Load the possibly composite schema found in specified target
namespace/URL pairs.
|
WXSchema |
loadSubDocumentType(URL url)
Loads document type contained in specified file.
|
static void |
main(String[] args) |
public WXSchema loadSubDocumentType(File file) throws IOException
IOException
public WXSchema loadSubDocumentType(URL url) throws IOException
SubDocumentTypeLoader
loadSubDocumentType
in interface SubDocumentTypeLoader
url
- file containing the document type to be loadednull
if
sourceFile contains an erroneous document type.IOException
- if an IO problem occurs when loading the
document typepublic MultiWXSchema loadSubDocumentType(NamespaceURLPair[] pairs) throws IOException
WXSLoader
loadSubDocumentType
in interface WXSLoader
pairs
- An array of namespace/URL pairs (example:
http://www.w3.org/1998/Math/MathML /
http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd).null
if the loaded schema is
invalid or if urls do not specify a schema.IOException
- if an IO problem occurs when loading the schema.public WXSchema loadSubDocumentType(Document schemaDoc)
WXSLoader
loadSubDocumentType
in interface WXSLoader
schemaDoc
- Document containing the schema (that is, its root
element is xs:schema).null
if the loaded schema is
invalid or if document does not specify a schema.public SchemaError[] getLoadErrors()
SubDocumentTypeLoader
getLoadErrors
in interface SubDocumentTypeLoader
public SchemaError[] getLoadWarnings()
SubDocumentTypeLoader
getLoadWarnings
in interface SubDocumentTypeLoader
public static void main(String[] args)