genie.core
Interface IEntityResolver

All Superinterfaces:
org.xml.sax.EntityResolver
All Known Implementing Classes:
EntityValidator

public interface IEntityResolver
extends org.xml.sax.EntityResolver

Author:
T. Kia Ntoni 13 mars 2005 IentityValidator @version

Method Summary
 void register(java.lang.String publicOrSystemId, java.lang.String entityURL)
          Register the specified DTD URL for the specified public identifier.
 
Methods inherited from interface org.xml.sax.EntityResolver
resolveEntity
 

Method Detail

register

void register(java.lang.String publicOrSystemId,
              java.lang.String entityURL)

Register the specified DTD URL for the specified public identifier. This must be called before the first call to parse().

Digester contains an internal EntityResolver implementation. This maps PUBLICID's to URLs (from which the resource will be loaded). A common use case for this method is to register local URLs (possibly computed at runtime by a classloader) for DTDs. This allows the performance advantage of using a local version without having to ensure every SYSTEM URI on every processed xml document is local. This implementation provides only basic functionality. If more sophisticated features are required, using #setEntityResolver to set a custom resolver is recommended.

Note: This method will have no effect when a custom EntityResolver has been set. (Setting a custom EntityResolver overrides the internal implementation.)

Parameters:
publicOrSystemId - Public identifier of the DTD to be resolved
entityURL - The URL to use for reading this DTD


Copyright © 2004-2005 Genies Projects. All Rights Reserved.