|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MutableSchemaResolver
A MutableSchemaResolver.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver |
|---|
getBaseURI, resolve, resolveAsLSInput, setBaseURI |
| Method Detail |
|---|
boolean isCacheResolvedSchemas()
void setCacheResolvedSchemas(boolean cacheResolvedSchemas)
cacheResolvedSchemas -
void 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 location
void setParseXSDAnnotations(String nsUri,
boolean value)
nsUri - the namespacevalue - the value of the optionBoolean unsetParseXSDAnnotations(String nsURI)
nsURI - the namespace URI
void mapSchemaInitializer(String nsUri,
String sbiClassName)
throws Exception
nsUri - the namespace URI to register the schema initializer forsbiClassName - the class name SchemaBindingInitializer
Exception - for any error
void 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 for
void mapURIToClass(String nsUri,
String reference)
throws ClassNotFoundException
nsUri - the namespace URIreference - fully qualified class name to build the SchemaBinding from
ClassNotFoundException - if the reference cannot be loaded
void mapURIToClass(String nsUri,
Class<?> clazz)
nsUri - the namespace URIclazz - class to build the SchemaBinding from
void mapURIToClasses(String nsUri,
String... reference)
throws ClassNotFoundException
nsUri - the namespace URIreference - array of fully qualified class names to build the SchemaBinding from
ClassNotFoundException - if at least one of the references cannot be loaded
void 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 unmap
void mapLocationToClass(String schemaLocation,
String reference)
throws ClassNotFoundException
schemaLocation - the location of the schemareference - the fully qualified class name to build the SchemaBinding from
ClassNotFoundException - if the reference cannot be loaded
void mapLocationToClass(String schemaLocation,
Class<?> clazz)
schemaLocation - the location of the schemaclazz - the class to build the SchemaBinding from
void mapLocationToClasses(String schemaLocation,
String... reference)
throws ClassNotFoundException
schemaLocation - the location of the schemareference - the array of fully qualified class names to build the SchemaBinding from
ClassNotFoundException - if at least one of the references cannot be loaded
void mapLocationToClasses(String schemaLocation,
Class<?>... classes)
schemaLocation - the location of the schemaclasses - the array of classes to build the SchemaBinding fromClass<?>[] removeLocationToClassMapping(String schemaLocation)
schemaLocation - the schema location
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||