Class BMUSchemaResourceResolver

java.lang.Object
de.consist.bmu.rule.schema.BMUSchemaResourceResolver
All Implemented Interfaces:
LSResourceResolver

public class BMUSchemaResourceResolver extends Object implements LSResourceResolver
LSResourceResolver Implementation für die Benutzung von SchemaValidator. Benutzte Resourcen werden in einer internen Map gehalten.
  • Constructor Details

    • BMUSchemaResourceResolver

      public BMUSchemaResourceResolver(String aSchemaFilePath)
      Default Konstruktor.
      Parameters:
      aSchemaFilePath - Basispfad zu den Schemadateien
  • Method Details

    • resolveResource

      public final LSInput resolveResource(String publicId, String systemId, String baseURI)
      Ruft resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)) mit type und namespaceURI sind null gesetzt.
      Parameters:
      publicId - PUBLIC id
      systemId - SYSTEM id
      baseURI - baseURI
      Returns:
      ressource
    • resolveResource

      public final LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)
      Sucht die gesuchte Resource anhang der lokal verfügbaren Resourcen.
      Specified by:
      resolveResource in interface LSResourceResolver
      Parameters:
      type - - The type of the resource being resolved. For XML [XML 1.0] resources (i.e. entities), applications must use the value "http://www.w3.org/TR/REC-xml". For XML Schema [XML Schema Part 1] , applications must use the value "http://www.w3.org/2001/XMLSchema".
      namespaceURI - - The namespace of the resource being resolved, e.g. the target namespace of the XML Schema [XML Schema Part 1] when resolving XML Schema resources.
      publicId - - The public identifier of the external entity being referenced, or null if no public identifier was supplied or if the resource is not an entity.
      systemId - - The system identifier, a URI reference [IETF RFC 2396], of the external resource being referenced, or null if no system identifier was supplied.
      baseURI - - The absolute base URI of the resource being parsed, or null if there is no base URI.
      Returns:
      A ByteStream connected to the resource