public final class CatalogManager extends Object
Modifier and Type | Method and Description |
---|---|
static Catalog |
catalog(CatalogFeatures features,
String... path)
Creates a Catalog object using the specified feature settings and path to
a catalog file.
|
static CatalogResolver |
catalogResolver(Catalog catalog)
Creates an instance of a CatalogResolver using the specified catalog.
|
static CatalogResolver |
catalogResolver(CatalogFeatures features,
String... path)
Creates an instance of a CatalogResolver using the specified feature settings
and path to a catalog file.
|
static CatalogUriResolver |
catalogUriResolver(Catalog catalog)
Creates an instance of a CatalogUriResolver using the specified catalog.
|
static CatalogUriResolver |
catalogUriResolver(CatalogFeatures features,
String... path)
Creates an instance of a CatalogUriResolver using the specified feature settings
and path to a catalog file.
|
public static Catalog catalog(CatalogFeatures features, String... path)
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 path 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.
features
- the catalog featurespath
- path(s) to one or more catalogs.CatalogException
- If no catalog can be found whether through the
specified path or the System property javax.xml.catalog.files
, or
an error occurs while parsing the catalogpublic static CatalogResolver catalogResolver(Catalog catalog)
catalog
- the catalog instancepublic static CatalogUriResolver catalogUriResolver(Catalog catalog)
catalog
- the catalog instancepublic static CatalogResolver catalogResolver(CatalogFeatures features, String... path)
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 path 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.
features
- the catalog featurespath
- the path(s) to one or more catalogsCatalogException
- If no catalog can be found whether through the
specified path or the System property javax.xml.catalog.files
, or
an error occurs while parsing the catalogpublic static CatalogUriResolver catalogUriResolver(CatalogFeatures features, String... path)
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 path 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.
features
- the catalog featurespath
- the path(s) to one or more catalogsCatalogException
- If no catalog can be found whether through the
specified path or the System property javax.xml.catalog.files
, or
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-17-105616.buildd.src