protected class

MSTRLayoutParser.ParserEntityResolver

extends Object
implements EntityResolver
java.lang.Object
   ↳ com.microstrategy.web.transform.MSTRLayoutParser.ParserEntityResolver

Class Overview

This is the default implementation of the EntityResolver object.

Summary

Public Constructors
MSTRLayoutParser.ParserEntityResolver(String entitySearchDir)
Constructor for this class.
Public Methods
InputSource resolveEntity(String publicId, String systemId)
Returns the InputSource for the referenced external entity.
Protected Methods
HashMap getEntityMap()
Returns a HashMap that maps file names to their full path where they can be found.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.xml.sax.EntityResolver

Public Constructors

public MSTRLayoutParser.ParserEntityResolver (String entitySearchDir)

Constructor for this class.

Parameters
entitySearchDir The directory to use for searching external DTDs.

Public Methods

public InputSource resolveEntity (String publicId, String systemId)

Returns the InputSource for the referenced external entity. If the System ID begins as a file reference ("file://") and the basename is XHTML1.1 or MicroStrategy Layout DTD, then it is mapped using the entity map (see getEntityMap()). If not in the map, then a blank InputSource is returned (after setting the public and system IDs).

Parameters
publicId The public ID of the entity.
systemId The system ID of the entity.
Returns
  • The InputSource to use for specified entity.
Throws
IOException
SAXException

Protected Methods

protected HashMap getEntityMap ()

Returns a HashMap that maps file names to their full path where they can be found.

Returns
  • The HashMap object which controls this EntityResolver.