org.exolab.castor.builder.binding

Class BindingLoader.BindingResolver

Enclosing Class:
BindingLoader
Implemented Interfaces:
EntityResolver

(package private) class BindingLoader.BindingResolver
extends java.lang.Object
implements EntityResolver

EntityResolver specific to resolving entities related to the Castor XML code generator binding file.
Author:
Werner Guttmann

Method Summary

URL
getBaseURL()
Returns the base URL for relative processing.
InputSource
resolveEntity(String publicId, String systemId)
Code adapted from DTDResolver written by Assaf Arkin.
void
setBaseURL(URL baseUrl)
Sets a base URL for relative processing.

Method Details

getBaseURL

public URL getBaseURL()
Returns the base URL for relative processing.
Returns:
base URL for relative processing

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
            throws IOException,
                   SAXException
Code adapted from DTDResolver written by Assaf Arkin.
Parameters:
publicId - The public identifier of the external entity being referenced, or null if none was supplied.
systemId - The system identifier of the external entity being referenced.
Returns:
An InputSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.
See Also:
org.exolab.castor.util.DTDResolver.resolveEntity(java.lang.String, java.lang.String), org.xml.sax.EntityResolver.resolveEntity(java.lang.String, java.lang.String)

setBaseURL

public void setBaseURL(URL baseUrl)
Sets a base URL for relative processing.
Parameters:
baseUrl - Base URL for relative processing.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com