Package at.gv.egovernment.moaspss.util
Class MOAEntityResolver
java.lang.Object
at.gv.egovernment.moaspss.util.MOAEntityResolver
- All Implemented Interfaces:
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity(String publicId, String systemId) Resolve an entity.
-
Constructor Details
-
MOAEntityResolver
public MOAEntityResolver()
-
-
Method Details
-
resolveEntity
Resolve an entity. ThesystemIdparameter is used to perform the lookup of the entity as a resource, either by interpreting thesystemIdas an absolute resource path, or by appending the last path component ofsystemIdtoConstants.SCHEMA_ROOT.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
publicId- The public ID of the resource.systemId- The system ID of the resource.- Returns:
- An
InputSourcefrom which the entity can be read, ornull, if the entity could not be found. - See Also:
-