|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xb.binding.resolver.AbstractMutableSchemaResolver
org.jboss.xb.binding.resolver.MultiClassSchemaResolver
public class MultiClassSchemaResolver
A default SchemaBindingResolver that uses a JBossEntityResolver to locate the schema xsd.
Constructor Summary | |
---|---|
MultiClassSchemaResolver()
|
|
MultiClassSchemaResolver(org.jboss.util.xml.JBossEntityResolver resolver)
|
Method Summary | |
---|---|
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 |
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<?>[] |
removeURIToClassMapping(String nsUri)
Removes namespace URI to class mapping |
Methods inherited from class org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver |
---|
getBaseURI, isCacheResolvedSchemas, loadReference, mapLocationToClass, mapLocationToClasses, mapSchemaInitializer, mapSchemaInitializer, mapSchemaLocation, mapURIToClass, mapURIToClasses, removeSchemaInitializer, removeSchemaLocation, resolve, resolveAsLSInput, resolveClassFromSchemaLocation, setBaseURI, setCacheResolvedSchemas, setParseXSDAnnotations, unsetParseXSDAnnotations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiClassSchemaResolver()
public MultiClassSchemaResolver(org.jboss.util.xml.JBossEntityResolver resolver)
Method Detail |
---|
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 location
public Class<?>[] removeURIToClassMapping(String nsUri)
MutableSchemaResolver
nsUri
- the namespace URI to unmap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |