CatalogEntry

The CatalogEntry class encapsulates a single entry in the SgmlCatalog. More...

Public Methods

CatalogEntry( Type type, const QString id, const QString soi );
const QStringid( );
const QStringsoi( );
voidsoi( const QString str );
Typetype( );

Private Data Members

QString_id;
QString_soi;
Type_type;

Detailed Documentation

The CatalogEntry class encapsulates a single entry in the SgmlCatalog.

Each catalog entry has a type, a public identifier, and a storage object identifier. The type tells whether the entry is for a document type declaration, a style sheet, or an SGML entity. The public identifier is the symbolic name, and the storage object idnentifier gives the actual physical location of the data.

Public Methods Documentation

CatalogEntry ( Type type, const QString id, const QString soi );

Create a new CatalogEntry of the given type, and with the given public identifer and storage object identifier.

const QString id ( );

Return the public identifier for the catalog entry. Doctype and Style entries that have the same public identifier are directly associated. That means that when rendering a document of type "foo", we use the style sheet with a public identifier of "foo".

const QString soi ( );

Return the Storage Object Identifier. This is the location of the actual data. This will always be a URL.

void soi ( const QString str );

Set the Storage Object Identifer for the entry.

Type type ( );

Return the type of this catalog entry. The supported types are:

Doctype
Document type declaration.
Entity
A generic SGML entity, usually included into a DTD.
Style
A style sheet.


Return to Index.
Automatically generated on Aug 11 23:32