org.jboss.xb.binding.sunday.unmarshalling
Class DefaultSchemaResolver

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver
All Implemented Interfaces:
SchemaBindingResolver

public class DefaultSchemaResolver
extends Object
implements SchemaBindingResolver

A default SchemaBindingResolver that uses a JBossEntityResolver to locate the schema xsd.

Version:
$Revision: 1.1.2.3 $
Author:
Scott.Stark@jboss.org

Constructor Summary
DefaultSchemaResolver()
           
DefaultSchemaResolver(JBossEntityResolver resolver)
           
 
Method Summary
 String getBaseURI()
           
 SchemaBinding resolve(String nsUri, String localName, String baseURI, String schemaLocation)
          The uses the JBossEntityResolver.resolveEntity by: 1.
 void setBaseURI(String baseURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSchemaResolver

public DefaultSchemaResolver()

DefaultSchemaResolver

public DefaultSchemaResolver(JBossEntityResolver resolver)
Method Detail

getBaseURI

public String getBaseURI()
Specified by:
getBaseURI in interface SchemaBindingResolver

setBaseURI

public void setBaseURI(String baseURI)
Specified by:
setBaseURI in interface SchemaBindingResolver

resolve

public SchemaBinding resolve(String nsUri,
                             String localName,
                             String baseURI,
                             String schemaLocation)
The uses the JBossEntityResolver.resolveEntity by: 1. Using the nsUri as the systemID 2. Using the schemaLocation as the systemID 3. If that fails, the baseURI is not null, the xsd is located using URL(baseURL, schemaLocation) 4. If the baseURI is null, the xsd is located using URL(schemaLocation)

Specified by:
resolve in interface SchemaBindingResolver
Parameters:
nsUri -
localName -
baseURI -
schemaLocation -
Returns:


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.