org.codehaus.mojo.xml
Class Resolver

java.lang.Object
  extended by org.codehaus.mojo.xml.Resolver
All Implemented Interfaces:
URIResolver, org.w3c.dom.ls.LSResourceResolver, EntityResolver, EntityResolver2

public class Resolver
extends Object
implements EntityResolver2, URIResolver, org.w3c.dom.ls.LSResourceResolver

An implementation of EntityResolver, URIResolver, and LSResourceResolver, based on the Apache catalog resolver.


Method Summary
 InputSource getExternalSubset(String name, String baseURI)
          Implementation of EntityResolver2.getExternalSubset(String, String)
 boolean isValidating()
          Returns, whether the Resolver should create validating parsers.
 URL resolve(String pResource)
          Attempts to resolve the given URI.
 Source resolve(String pHref, String pBase)
          Implementation of URIResolver.resolve(String, String).
 InputSource resolveEntity(String pPublicId, String pSystemId)
          Implementation of EntityResolver.resolveEntity(String, String).
 InputSource resolveEntity(String pName, String pPublicId, String pBaseURI, String pSystemId)
          Implementation of EntityResolver2.resolveEntity(String, String, String, String)
 org.w3c.dom.ls.LSInput resolveResource(String pType, String pNamespaceURI, String pPublicId, String pSystemId, String pBaseURI)
          Implementation of LSResourceResolver.resolveResource(String, String, String, String, String).
 void setValidating(boolean pValidating)
          Sets, whether the Resolver should create validating parsers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveEntity

public InputSource resolveEntity(String pPublicId,
                                 String pSystemId)
                          throws SAXException,
                                 IOException
Implementation of EntityResolver.resolveEntity(String, String).

Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException

resolve

public Source resolve(String pHref,
                      String pBase)
               throws TransformerException
Implementation of URIResolver.resolve(String, String).

Specified by:
resolve in interface URIResolver
Throws:
TransformerException

resolveResource

public org.w3c.dom.ls.LSInput resolveResource(String pType,
                                              String pNamespaceURI,
                                              String pPublicId,
                                              String pSystemId,
                                              String pBaseURI)
Implementation of LSResourceResolver.resolveResource(String, String, String, String, String).

Specified by:
resolveResource in interface org.w3c.dom.ls.LSResourceResolver

setValidating

public void setValidating(boolean pValidating)
Sets, whether the Resolver should create validating parsers.


isValidating

public boolean isValidating()
Returns, whether the Resolver should create validating parsers.


resolve

public URL resolve(String pResource)
Attempts to resolve the given URI.


getExternalSubset

public InputSource getExternalSubset(String name,
                                     String baseURI)
                              throws SAXException,
                                     IOException
Implementation of EntityResolver2.getExternalSubset(String, String)

Specified by:
getExternalSubset in interface EntityResolver2
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(String pName,
                                 String pPublicId,
                                 String pBaseURI,
                                 String pSystemId)
                          throws SAXException,
                                 IOException
Implementation of EntityResolver2.resolveEntity(String, String, String, String)

Specified by:
resolveEntity in interface EntityResolver2
Throws:
SAXException
IOException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.