|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.validation.resolver.eXistCatalogResolver
public class eXistCatalogResolver
Shared CatalogResolver to be used by the eXist database and the eXist Cocoon web interface. The configuration must be initialized once, typically performed by the database (Configuration class). Consequently the Cocoon interface can reuse the resolver. This resolver guarantees that only one apache.org catalog resolver is being initialized. At this moment the class is just a thin wrapper. To be changed in the near future: Grammar and catalog files can all be stored in the database itself.
| Constructor Summary | |
|---|---|
eXistCatalogResolver()
Constructor. |
|
eXistCatalogResolver(boolean privateCatalog)
Constructor. |
|
eXistCatalogResolver(CatalogManager manager)
Constructor. |
|
| Method Summary | |
|---|---|
Catalog |
getCatalog()
Return the underlying catalog |
Source |
resolve(String href,
String base)
An object that implements this interface that can be called by the processor to turn a URI used in document(), xsl:import, or xsl:include into a Source object. |
InputSource |
resolveEntity(String publicId,
String systemId)
Resolve grammar specified by publicId and/or systemId. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public eXistCatalogResolver()
public eXistCatalogResolver(boolean privateCatalog)
privateCatalog - TRUE for private catalog, FALSE if not.public eXistCatalogResolver(CatalogManager manager)
manager - Specific catalogmanager to use.| Method Detail |
|---|
public Catalog getCatalog()
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
resolveEntity in interface EntityResolverpublicId - The public identifier of the external entity being
referenced, or null if none was supplied.systemId - The system identifier of the external entity being
referenced.
SAXException - Any SAX exception, possibly wrapping another
exception.
IOException - A Java-specific IO exception, possibly the
result of creating a new InputStream or Reader
for the InputSource.resolveEntity
public Source resolve(String href,
String base)
throws TransformerException
resolve in interface URIResolverhref - An href attribute, which may be relative or absolute.base - The base URI in effect when the href attribute was
encountered.
TransformerException - if an error occurs when trying to resolve
the URI.resolve
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||