at.gv.egovernment.moa.util
Class MOAEntityResolver
java.lang.Object
|
+--at.gv.egovernment.moa.util.MOAEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- public class MOAEntityResolver
- extends Object
- implements org.xml.sax.EntityResolver
An EntityResolver
that looks up entities stored as
local resources.
The following DTDs are mapped to local resources:
- The XMLSchema.dtd
- The datatypes.dtd
For all other resources, an attempt is made to resolve them as resources,
either absolute or relative to Constants.SCHEMA_ROOT
.
- Author:
- Patrick Peck, Sven Aigner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOAEntityResolver
public MOAEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(String publicId,
String systemId)
- Resolve an entity.
The
systemId
parameter is used to perform the lookup of the
entity as a resource, either by interpreting the systemId
as
an absolute resource path, or by appending the last path component of
systemId
to Constants.SCHEMA_ROOT
.
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Parameters:
publicId
- The public ID of the resource.systemId
- The system ID of the resource.- Returns:
- An
InputSource
from which the entity can be read, or
null
, if the entity could not be found. - See Also:
EntityResolver.resolveEntity(java.lang.String, java.lang.String)