public final class CatalogManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static Catalog |
catalog(CatalogFeatures features,
String... paths)
Creates a
Catalog object using the specified feature settings and
path to one or more catalog files. |
static CatalogResolver |
catalogResolver(Catalog catalog)
Creates an instance of a
CatalogResolver using the specified catalog. |
static CatalogResolver |
catalogResolver(CatalogFeatures features,
String... paths)
Creates an instance of a
CatalogResolver using the specified feature
settings and path to one or more catalog files. |
static CatalogUriResolver |
catalogUriResolver(Catalog catalog)
Creates an instance of a
CatalogUriResolver using the specified catalog. |
static CatalogUriResolver |
catalogUriResolver(CatalogFeatures features,
String... paths)
Creates an instance of a
CatalogUriResolver using the specified
feature settings and path to one or more catalog files. |
public static Catalog catalog(CatalogFeatures features, String... paths)
Catalog object using the specified feature settings and
path to one or more catalog files.
If paths is empty, system property javax.xml.catalog.files
will be read to locate the initial list of catalog files.
If more than one catalog files are specified through the paths argument or
javax.xml.catalog.files property, the first entry is considered
the main catalog, while others are treated as alternative catalogs after
those referenced by the nextCatalog elements in the main catalog.
As specified in XML Catalogs, OASIS Standard V1.1, invalid path entries will be ignored. No error will be reported. In case all entries are invalid, the resolver will return as no mapping is found.
features - the catalog featurespaths - path(s) to one or more catalogs.CatalogCatalogException - If an error occurs while parsing the catalogpublic static CatalogResolver catalogResolver(Catalog catalog)
CatalogResolver using the specified catalog.catalog - the catalog instanceCatalogResolverpublic static CatalogUriResolver catalogUriResolver(Catalog catalog)
CatalogUriResolver using the specified catalog.catalog - the catalog instanceCatalogResolverpublic static CatalogResolver catalogResolver(CatalogFeatures features, String... paths)
CatalogResolver using the specified feature
settings and path to one or more catalog files.
If paths is empty, system property javax.xml.catalog.files
will be read to locate the initial list of catalog files.
If more than one catalog files are specified through the paths argument or
javax.xml.catalog.files property, the first entry is considered
the main catalog, while others are treated as alternative catalogs after
those referenced by the nextCatalog elements in the main catalog.
As specified in XML Catalogs, OASIS Standard V1.1, invalid path entries will be ignored. No error will be reported. In case all entries are invalid, the resolver will return as no mapping is found.
features - the catalog featurespaths - the path(s) to one or more catalogsCatalogResolverCatalogException - If an error occurs while parsing the catalogpublic static CatalogUriResolver catalogUriResolver(CatalogFeatures features, String... paths)
CatalogUriResolver using the specified
feature settings and path to one or more catalog files.
If paths is empty, system property javax.xml.catalog.files
will be read to locate the initial list of catalog files.
If more than one catalog files are specified through the paths argument or
javax.xml.catalog.files property, the first entry is considered
the main catalog, while others are treated as alternative catalogs after
those referenced by the nextCatalog elements in the main catalog.
As specified in XML Catalogs, OASIS Standard V1.1, invalid path entries will be ignored. No error will be reported. In case all entries are invalid, the resolver will return as no mapping is found.
features - the catalog featurespaths - the path(s) to one or more catalogsCatalogUriResolverCatalogException - If an error occurs while parsing the catalog Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait