LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.parser
Class LySimpleEntityResolver

java.lang.Object
  extended by leon.parser.LySimpleEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver
Direct Known Subclasses:
LyEntityResolver

public class LySimpleEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

This class implements a simple entity resolver. It does not return any entity but register the system id for leon.dtd.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySimpleEntityResolver()
          Default constructor.
LySimpleEntityResolver(LyEnvironment environment)
          Default constructor with an environment.
 
Method Summary
 org.xml.sax.InputSource getInputSource(java.lang.String systemId)
          Gets an inputsource from a specified URL.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Allows the application to resolve external entities.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LySimpleEntityResolver

public LySimpleEntityResolver()
Default constructor. Calls this(null)


LySimpleEntityResolver

public LySimpleEntityResolver(LyEnvironment environment)
Default constructor with an environment.

Parameters:
environment - the resolver environment
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
Allows the application to resolve external entities.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
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

getInputSource

public org.xml.sax.InputSource getInputSource(java.lang.String systemId)
Gets an inputsource from a specified URL. This method does nothing and always return null

Parameters:
systemId - identifier of the entity
Returns:
null

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com