Classes | Public Member Functions

org.exolab.castor.util.DTDResolver Class Reference

Inherits org::xml::sax::EntityResolver.

List of all members.

Classes

class  DTDInfo

Public Member Functions

 DTDResolver (EntityResolver resolver)
 DTDResolver ()
void setBaseURL (URL baseUrl)
URL getBaseURL ()
InputSource resolveEntity (String publicId, String systemId) throws IOException, SAXException

Detailed Description

Entity resolver for various DTD/schema. Holds information and performs resolving on a variety of DTD and schema, both those defined by Castor and those used by Castor and cached by it.

The following DTD and XML schema are supported:

Thie resolver can resolve both public and system identifiers, and will return an input stream into a cached resource in the Castor JAR.

This resolver can be used as wrapper to another entity resolver. For example, if a resolver is used for external entities in the mapping file, construct a new resolver using the DTDResolver(EntityResolver) constructor.

Author:
Assaf Arkin
Version:
Revision:
1.2
Date:
2004/03/23 07:52:53

Constructor & Destructor Documentation

org.exolab.castor.util.DTDResolver.DTDResolver ( EntityResolver  resolver  ) 

Constructs a new DTD resolver. This resolver wraps another resolver and will delegate all resolving not related to the Castor mapping files to that resolver. The wrapper resolver will typically be used for entities appearing in the actual mapping file.

org.exolab.castor.util.DTDResolver.DTDResolver (  ) 

Constructs a new DTD resolver.


Member Function Documentation

URL org.exolab.castor.util.DTDResolver.getBaseURL (  ) 
InputSource org.exolab.castor.util.DTDResolver.resolveEntity ( String  publicId,
String  systemId 
) throws IOException, SAXException
void org.exolab.castor.util.DTDResolver.setBaseURL ( URL  baseUrl  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties