|
JBoss XML Binding 2.0.3.GA-redhat-2 | |||||||||
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<?>[] |
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 |
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
protected 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 name
|
JBoss XML Binding 2.0.3.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |