|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.inria.ns.reflex.xml.ExternalIdentifierResolver
public class ExternalIdentifierResolver
A universal EntityResolver that deals with catalogs, on behalf of a tool that may express its preference regarding external identifiers. Usually used by XML parsers.
ParseAction
,
org.inria.ns.reflex.processor.catalog
Constructor Summary | |
---|---|
ExternalIdentifierResolver(int preferred,
GlobalCatalog globalCatalog,
ErrorHandler errorHandler,
XFile baseLocation)
Creates a resolver for external identifiers. |
Method Summary | |
---|---|
XFile |
getBaseLocation()
Return the base location used to resolve relative paths. |
int |
getPreferred()
Return the preferred mode. |
InputSource |
resolveEntity(String publicId,
String systemId)
Resolve an external identifier. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalIdentifierResolver(int preferred, GlobalCatalog globalCatalog, ErrorHandler errorHandler, XFile baseLocation)
preferred
- The external identifier preference mode :
globalCatalog
- Used for catalog lookup.
May be null
if the preference mode is (-1).errorHandler
- Used to report a warning if a catalog
is not in the format expected.
May be null
if the preference mode is (-1),
or if no warning wants to be reported.baseLocation
- The base location that allow to resolve
relative paths.Method Detail |
---|
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
publicId
- The public ID, that may be null
if the system ID is not-null
.systemId
- The system ID, that may be null
.
if the public ID is not-null
.
SAXException
IOException
EntityResolver.resolveEntity(java.lang.String, java.lang.String)
public int getPreferred()
getPreferred
in interface Preferable
Preferable.getPreferred()
public XFile getBaseLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |