|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.tireme.shared.xml.resolver.MyCatalogResolver
public class MyCatalogResolver
A SAX EntityResolver/JAXP URIResolver that uses catalogs.
This class implements both a SAX EntityResolver and a JAXP URIResolver.
This resolver understands OASIS TR9401 catalogs, XCatalogs, and the current working draft of the OASIS Entity Resolution Technical Committee specification.
Catalog,
EntityResolver,
Source created from Norman Walsh Apache resolver sample distribution | Field Summary | |
|---|---|
boolean |
namespaceAware
Make the parser Namespace aware? |
boolean |
validating
Make the parser validating? |
| Constructor Summary | |
|---|---|
MyCatalogResolver()
Constructor |
|
MyCatalogResolver(boolean privateCatalog)
Constructor |
|
MyCatalogResolver(org.apache.xml.resolver.CatalogManager manager)
Constructor |
|
| Method Summary | |
|---|---|
org.apache.xml.resolver.Catalog |
getCatalog()
Return the underlying catalog |
java.lang.String |
getResolvedEntity(java.lang.String publicId,
java.lang.String systemId)
Implements the guts of the resolveEntity method for the SAX interface. |
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
JAXP URIResolver API |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Implements the resolveEntity method for the SAX interface. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean namespaceAware
public boolean validating
| Constructor Detail |
|---|
public MyCatalogResolver()
throws Xml2outputAbortExcept
Xml2outputAbortExcept
public MyCatalogResolver(boolean privateCatalog)
throws Xml2outputAbortExcept
privateCatalog - boolean
Xml2outputAbortExcept
public MyCatalogResolver(org.apache.xml.resolver.CatalogManager manager)
throws Xml2outputAbortExcept
manager - CatalogManager
Xml2outputAbortExcept| Method Detail |
|---|
public org.apache.xml.resolver.Catalog getCatalog()
public java.lang.String getResolvedEntity(java.lang.String publicId,
java.lang.String systemId)
resolveEntity method for the SAX interface.
Presented with an optional public identifier and a system identifier, this function attempts to locate a mapping in the catalogs.
If such a mapping is found, it is returned. If no mapping is found, null is returned.
publicId - The public identifier for the entity in question. This may be null.systemId - The system identifier for the entity in question. XML requires a system identifier on all
external entities, so this value is always specified.
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
resolveEntity method for the SAX interface.
Presented with an optional public identifier and a system identifier, this function attempts to locate a mapping in the catalogs.
If such a mapping is found, the resolver attempts to open the mapped value as an InputSource and return it. Exceptions are ignored and null is returned if the mapped value cannot be opened as an input source.
If no mapping is found (or an error occurs attempting to open the mapped value as an input source), null is returned and the system will use the specified system identifier as if no entityResolver was specified.
resolveEntity in interface org.xml.sax.EntityResolverpublicId - The public identifier for the entity in question. This may be null.systemId - The system identifier for the entity in question. XML requires a system identifier on all
external entities, so this value is always specified.
EntityResolver.resolveEntity(String, String)
public javax.xml.transform.Source resolve(java.lang.String href,
java.lang.String base)
throws javax.xml.transform.TransformerException
resolve in interface javax.xml.transform.URIResolverhref - Stringbase - String
javax.xml.transform.TransformerExceptionURIResolver.resolve(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||