Class SchemaCatalog


  • public class SchemaCatalog
    extends Object
    Support for XML schema resolution in an OASIS Catalog (with URI resolution semantics).
    Author:
    Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
    • Method Detail

      • resolveLocation

        public String resolveLocation​(String location)
        Return schema location resolved in the catalog if possible. rewriteURI semantics are used.
        Parameters:
        location - typically an absolute http/https URL.
        Returns:
        null if location not found in the catalog
      • build

        public static SchemaCatalog build​(URL catalogLocation)
        Build an catalog using the given OASIS Catalog file URL.
        Parameters:
        catalogLocation - local file URL to an OASIS cCtalog