public class W3CMultiSchemaFactory extends Object
Note: intentionally does NOT (claim to) implement XMLValidationSchemaFactory
since interface (that is, createSchema(String, Map)
)
is not incompatible with that of other "standard" schema factories; means that
usage must be explicit, direct and can not be triggered via Stax2 API.
Constructor and Description |
---|
W3CMultiSchemaFactory() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.stax2.validation.XMLValidationSchema |
createSchema(String baseURI,
Map<String,Source> schemaSources)
Creates an XMLValidateSchema that can be used to validate XML instances against
any of the schemas defined in the Map of schemaSources.
|
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(String baseURI, Map<String,Source> schemaSources) throws XMLStreamException
baseURI
- Base URI for resolving dependant schemasschemaSources
- Map of schemas, namespace to SourceXMLStreamException
Copyright © 2020 FasterXML. All rights reserved.