IMSEVimse 1.0
Draft

se.kth.cid.xml
Class Catalog

java.lang.Object
  |
  +--se.kth.cid.xml.Catalog

public class Catalog
extends Object

This class is a catalog of external entities, including DTDs. It is used to find specific, known, external entities when they are encountered in an XML document.

Version:
$Revision: 1.1.1.1 $
Author:
Mikael Nilsson

Constructor Summary
Catalog()
          Constructs an empty catalog
 
Method Summary
 void addEntity(ExternalEntity ent)
          Adds an antity to the catalog.
 ExternalEntity resolveEntity(String pubID, String sysID, String docType)
          Returns the entity matching the given ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Catalog

public Catalog()
Constructs an empty catalog
Method Detail

addEntity

public void addEntity(ExternalEntity ent)
Adds an antity to the catalog.
Parameters:
ent - the entity to add.

resolveEntity

public ExternalEntity resolveEntity(String pubID,
                                    String sysID,
                                    String docType)
Returns the entity matching the given ID. The entity is first looked for using the public ID, then the system ID and last, the docType. No check is done to ensure all fields match.
Parameters:
pubID - the public ID to look for. May be null.
sysID - the system ID to look for. May be null.
docType - the docType to look for. May be null.
Returns:
the external entity or null if none matched.

IMSEVimse 1.0
Draft

Centre for user-oriented IT -design