org.geotools.xml.resolver
Class SchemaCatalog

Object
  extended by 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)
See Also:

Method Summary
static SchemaCatalog build(URL catalogLocation)
          Build an catalog using the given OASIS Catalog file URL.
 String resolveLocation(String location)
          Return schema location resolved in the catalog if possible.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 1996-2014 Geotools. All Rights Reserved.