Package net.sf.saxon.option.xom
Class XomUriResolver
- java.lang.Object
- 
- net.sf.saxon.lib.StandardURIResolver
- 
- net.sf.saxon.option.xom.XomUriResolver
 
 
- 
- All Implemented Interfaces:
- javax.xml.transform.URIResolver,- NonDelegatingURIResolver
 
 public class XomUriResolver extends StandardURIResolver This class is a URI resolver that loads an XML document found at the relevant URI and builds a XOM tree from it; the XOM tree is then returned as a source object. The main purpose of this class is for testing: any application that works with a Saxon tinytree can be tested against XOM merely by selecting this URIResolver.
- 
- 
Constructor SummaryConstructors Constructor Description XomUriResolver(Configuration config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.transform.Sourceresolve(java.lang.String href, java.lang.String base)Resolve a URI- 
Methods inherited from class net.sf.saxon.lib.StandardURIResolvergetAllowedUriTest, getConfiguration, getPlatform, getPTreeSource, queryParametersAreRecognized, setAllowedUriTest, setConfiguration, setRecognizeQueryParameters, setSAXInputSource
 
- 
 
- 
- 
- 
Constructor Detail- 
XomUriResolverpublic XomUriResolver(Configuration config) 
 
- 
 - 
Method Detail- 
resolvepublic javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws XPathExceptionResolve a URI- Specified by:
- resolvein interface- javax.xml.transform.URIResolver
- Overrides:
- resolvein class- StandardURIResolver
- Parameters:
- href- The relative or absolute URI. May be an empty string. May contain a fragment identifier starting with "#", which must be the value of an ID attribute in the referenced XML document.
- base- The base URI that should be used. May be null if uri is absolute.
- Returns:
- a Source object representing an XML document
- Throws:
- XPathException
 
 
- 
 
-