Class MOAEntityResolver

java.lang.Object
at.gv.egovernment.moaspss.util.MOAEntityResolver
All Implemented Interfaces:
EntityResolver

public class MOAEntityResolver extends Object implements 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 Details

    • MOAEntityResolver

      public MOAEntityResolver()
  • Method Details

    • resolveEntity

      public 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 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: