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, unsetParseXSDAnnotations
public MultiClassSchemaResolver()
public MultiClassSchemaResolver(org.jboss.util.xml.JBossEntityResolver resolver)
protected Class<?>[] getClassesForSchemaLocation(String uri)
getClassesForSchemaLocation
in class AbstractMutableSchemaResolver
protected Class<?>[] getClassesForURI(String uri)
getClassesForURI
in class AbstractMutableSchemaResolver
public void mapLocationToClass(String schemaLocation, Class<?> clazz)
MutableSchemaResolver
schemaLocation
- the location of the schemaclazz
- the class to build the SchemaBinding frompublic void mapLocationToClasses(String schemaLocation, Class<?>... classes)
MutableSchemaResolver
schemaLocation
- the location of the schemaclasses
- the array of classes to build the SchemaBinding frompublic void mapURIToClass(String nsUri, Class<?> clazz)
MutableSchemaResolver
nsUri
- the namespace URIclazz
- class to build the SchemaBinding frompublic void mapURIToClasses(String nsUri, Class<?>... classes)
MutableSchemaResolver
nsUri
- the namespace URIpublic Class<?>[] removeLocationToClassMapping(String schemaLocation)
MutableSchemaResolver
schemaLocation
- the schema locationpublic Class<?>[] removeURIToClassMapping(String nsUri)
MutableSchemaResolver
nsUri
- the namespace URI to unmapprotected Class<?>[] getClassesForQName(QName elementName)
getClassesForQName
in class AbstractMutableSchemaResolver
public void mapQNameToClasses(QName elementName, Class<?>... classes)
MutableSchemaResolverWithQNameMapping
elementName
- the name of the root elementclasses
- the array of classes to build the SchemaBinding frompublic Class<?>[] removeQNameToClassMapping(QName elementName)
MutableSchemaResolverWithQNameMapping
elementName
- the root element nameCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.