public interface MutableSchemaResolver extends SchemaBindingResolver
Modifier and Type | Method and Description |
---|---|
boolean |
isCacheResolvedSchemas() |
void |
mapLocationToClass(String schemaLocation,
Class<?> clazz)
Maps schema location to a class which should be used as the base for the SchemaBinding.
|
void |
mapLocationToClass(String schemaLocation,
String reference)
Maps schema location to a class which should be used as the base for the SchemaBinding.
|
void |
mapLocationToClasses(String schemaLocation,
Class<?>... classes)
Maps schema location to an array of classes that should be used as the base for the SchemaBinding.
|
void |
mapLocationToClasses(String schemaLocation,
String... reference)
Maps schema location to an array of classes that should be used as the base for the SchemaBinding.
|
void |
mapSchemaInitializer(String nsUri,
SchemaBindingInitializer sbi)
Registers an instance of SchemaBindingInitializer for the namespace URI.
|
void |
mapSchemaInitializer(String nsUri,
String sbiClassName)
Registers a SchemaBindingInitializer for the namespace URI.
|
void |
mapSchemaLocation(String nsUri,
String location)
Registers a location for the namespace URI.
|
void |
mapURIToClass(String nsUri,
Class<?> clazz)
Maps a namespace URI to a class which will be used as the base for the SchemaBinding.
|
void |
mapURIToClass(String nsUri,
String reference)
Maps a namespace URI to a class which will be used as the base for the SchemaBinding.
|
void |
mapURIToClasses(String nsUri,
Class<?>... clazz)
Maps a namespace URI to an array of classes that will be used as the base for the SchemaBinding.
|
void |
mapURIToClasses(String nsUri,
String... reference)
Maps a namespace URI to an array of classes that will be used as the base for the SchemaBinding.
|
Class<?>[] |
removeLocationToClassMapping(String schemaLocation)
Removes schema location to class mapping.
|
SchemaBindingInitializer |
removeSchemaInitializer(String nsUri)
Unregisters and returns the SchemaBindingInitializer for the namespace URI.
|
void |
removeSchemaLocation(String nsUri)
Removes a location for the namespace URI.
|
Class<?>[] |
removeURIToClassMapping(String nsUri)
Removes namespace URI to class mapping
|
void |
setCacheResolvedSchemas(boolean cacheResolvedSchemas)
If the implementation supports caching of the resolved schema bindings then
passing in true will enable caching.
|
void |
setParseXSDAnnotations(String nsUri,
boolean value)
Whether to parse XSD annotations for this namespace.
|
Boolean |
unsetParseXSDAnnotations(String nsURI)
Clears the flag to parse XSD annotations for the namespace URI.
|
getBaseURI, resolve, resolveAsLSInput, setBaseURI
boolean isCacheResolvedSchemas()
void setCacheResolvedSchemas(boolean cacheResolvedSchemas)
cacheResolvedSchemas
- cache resolved schemas flagvoid mapSchemaLocation(String nsUri, String location)
The location may be a classpath location if the implementation supports searching in the classpath (e.g. using JBossEntityResolver)
nsUri
- the namespace URIlocation
- the schema locationvoid removeSchemaLocation(String nsUri)
nsUri
- the namespace locationvoid setParseXSDAnnotations(String nsUri, boolean value)
nsUri
- the namespacevalue
- the value of the optionBoolean unsetParseXSDAnnotations(String nsURI)
nsURI
- the namespace URIvoid mapSchemaInitializer(String nsUri, String sbiClassName) throws Exception
nsUri
- the namespace URI to register the schema initializer forsbiClassName
- the class name SchemaBindingInitializerException
- for any errorvoid mapSchemaInitializer(String nsUri, SchemaBindingInitializer sbi)
nsUri
- the namespace URI to register the schema initializer forsbi
- an instance of SchemaBindingInitializerSchemaBindingInitializer removeSchemaInitializer(String nsUri)
nsUri
- the namespace URI to unregister SchemaBindingInitializer forvoid mapURIToClass(String nsUri, String reference) throws ClassNotFoundException
nsUri
- the namespace URIreference
- fully qualified class name to build the SchemaBinding fromClassNotFoundException
- if the reference cannot be loadedvoid mapURIToClass(String nsUri, Class<?> clazz)
nsUri
- the namespace URIclazz
- class to build the SchemaBinding fromvoid mapURIToClasses(String nsUri, String... reference) throws ClassNotFoundException
nsUri
- the namespace URIreference
- array of fully qualified class names to build the SchemaBinding fromClassNotFoundException
- if at least one of the references cannot be loadedvoid mapURIToClasses(String nsUri, Class<?>... clazz)
nsUri
- the namespace URIreference
- array of classes to build the SchemaBinding fromClass<?>[] removeURIToClassMapping(String nsUri)
nsUri
- the namespace URI to unmapvoid mapLocationToClass(String schemaLocation, String reference) throws ClassNotFoundException
schemaLocation
- the location of the schemareference
- the fully qualified class name to build the SchemaBinding fromClassNotFoundException
- if the reference cannot be loadedvoid mapLocationToClass(String schemaLocation, Class<?> clazz)
schemaLocation
- the location of the schemaclazz
- the class to build the SchemaBinding fromvoid mapLocationToClasses(String schemaLocation, String... reference) throws ClassNotFoundException
schemaLocation
- the location of the schemareference
- the array of fully qualified class names to build the SchemaBinding fromClassNotFoundException
- if at least one of the references cannot be loadedvoid mapLocationToClasses(String schemaLocation, Class<?>... classes)
schemaLocation
- the location of the schemaclasses
- the array of classes to build the SchemaBinding fromCopyright © 2013 JBoss by Red Hat. All rights reserved.