A catalog is an XML file that contains a root catalog entry with a list
of catalog entries. The entries can also be grouped with a group entry.
The catalog and group entries may specify prefer and xml:base
attributes that set preference of public or system type of entries and base URI
to resolve relative URIs.
A catalog can be used in two situations:
For case 1, the standard defines 6 External Identifier Entries:
public, system, rewriteSystem, systemSuffix, delegatePublic, and
delegateSystem.
While for case 2, it defines 4 URI Entries:
uri, rewriteURI, uriSuffix and delegateURI.
In addition to the above entry types, a catalog may define nextCatalog entries to add additional catalog entry files.
| Modifier and Type | Method and Description |
|---|---|
| public Stream | Returns: a sequential Stream of CatalogsReturns a sequential Stream of alternative Catalogs specified using the
|
| public String | Returns: a URI string if a mapping is found, or null otherwisethe public identifier of the entity to be matched publicId)Attempts to find a matching entry in the catalog by publicId. |
| public String | Returns: a URI string if a mapping is found, or null otherwisethe system identifier of the entity to be matched systemId)Attempts to find a matching entry in the catalog by systemId. |
| public String |
| catalogs | back to summary |
|---|---|
| public Stream Returns a sequential Stream of alternative Catalogs specified using the
The order of Catalogs in the returned stream is the same as the order
in which the corresponding | |
| matchPublic | back to summary |
|---|---|
| public String matchPublic(String publicId) Attempts to find a matching entry in the catalog by publicId. The method
searches through the public-type entries, including
Refer to the description about
Feature PREFER in the table Catalog Features in class
Resolution follows the steps listed below:
| |
| matchSystem | back to summary |
|---|---|
| public String matchSystem(String systemId) Attempts to find a matching entry in the catalog by systemId.
The method searches through the system-type entries, including
Resolution follows the steps listed below:
| |
| matchURI | back to summary |
|---|---|
| public String matchURI(String uri) Attempts to find a matching entry in the catalog by the uri element.
The method searches through the uri-type entries, including
Resolution follows the steps listed below:
| |