public class MultiClassSchemaResolver extends AbstractMutableSchemaResolver
| Constructor and Description |
|---|
MultiClassSchemaResolver() |
MultiClassSchemaResolver(org.jboss.util.xml.JBossEntityResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?>[] |
getClassesForQName(QName elementName) |
protected Class<?>[] |
getClassesForSchemaLocation(String uri) |
protected Class<?>[] |
getClassesForURI(String uri) |
void |
mapLocationToClass(String schemaLocation,
Class<?> clazz)
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 |
mapQNameToClasses(QName elementName,
Class<?>... classes)
Maps element name to an array of classes that should be used as the base for the SchemaBinding.
|
void |
mapURIToClass(String nsUri,
Class<?> clazz)
Maps a namespace URI to a class which will be used as the base for the SchemaBinding.
|
void |
mapURIToClasses(String nsUri,
Class<?>... classes)
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.
|
Class<?>[] |
removeQNameToClassMapping(QName elementName)
Removes element name to class mapping.
|
Class<?>[] |
removeURIToClassMapping(String nsUri)
Removes namespace URI to class mapping
|
getBaseURI, getBindingValidator, isCacheResolvedSchemas, isValidateBinding, loadReference, mapLocationToClass, mapLocationToClasses, mapSchemaInitializer, mapSchemaInitializer, mapSchemaLocation, mapURIToClass, mapURIToClasses, removeSchemaInitializer, removeSchemaLocation, resolve, resolveAsLSInput, resolveClassFromSchemaLocation, setBaseURI, setBindingValidator, setCacheResolvedSchemas, setParseXSDAnnotations, setValidateBinding, unsetParseXSDAnnotationspublic MultiClassSchemaResolver()
public MultiClassSchemaResolver(org.jboss.util.xml.JBossEntityResolver resolver)
protected Class<?>[] getClassesForSchemaLocation(String uri)
getClassesForSchemaLocation in class AbstractMutableSchemaResolverprotected Class<?>[] getClassesForURI(String uri)
getClassesForURI in class AbstractMutableSchemaResolverpublic void mapLocationToClass(String schemaLocation, Class<?> clazz)
MutableSchemaResolverschemaLocation - the location of the schemaclazz - the class to build the SchemaBinding frompublic void mapLocationToClasses(String schemaLocation, Class<?>... classes)
MutableSchemaResolverschemaLocation - the location of the schemaclasses - the array of classes to build the SchemaBinding frompublic void mapURIToClass(String nsUri, Class<?> clazz)
MutableSchemaResolvernsUri - the namespace URIclazz - class to build the SchemaBinding frompublic void mapURIToClasses(String nsUri, Class<?>... classes)
MutableSchemaResolvernsUri - the namespace URIpublic Class<?>[] removeLocationToClassMapping(String schemaLocation)
MutableSchemaResolverschemaLocation - the schema locationpublic Class<?>[] removeURIToClassMapping(String nsUri)
MutableSchemaResolvernsUri - the namespace URI to unmapprotected Class<?>[] getClassesForQName(QName elementName)
getClassesForQName in class AbstractMutableSchemaResolverpublic void mapQNameToClasses(QName elementName, Class<?>... classes)
MutableSchemaResolverWithQNameMappingelementName - the name of the root elementclasses - the array of classes to build the SchemaBinding frompublic Class<?>[] removeQNameToClassMapping(QName elementName)
MutableSchemaResolverWithQNameMappingelementName - the root element nameCopyright © 2016 JBoss by Red Hat. All rights reserved.