org.apache.cocoon.components.validation.jaxp
Class JaxpResolver

java.lang.Object
  extended byorg.apache.cocoon.components.validation.impl.ValidationResolver
      extended byorg.apache.cocoon.components.validation.jaxp.JaxpResolver
All Implemented Interfaces:
EntityResolver, LSResourceResolver

public class JaxpResolver
extends ValidationResolver
implements LSResourceResolver

An implementation of the LSResourceResolver interface based on the generic ValidationResolver to supply to JAXP schema factories.

Author:
Pier Fumagalli

Constructor Summary
JaxpResolver(SourceResolver sourceResolver, EntityResolver entityResolver)
          Create a new JaxpResolver instance.
 
Method Summary
 LSInput resolveResource(String type, String namespace, String systemId, String publicId, String base)
          Resolve a resource into a LSInput from the provided location information.
 
Methods inherited from class org.apache.cocoon.components.validation.impl.ValidationResolver
close, finalize, resolveEntity, resolveEntity, resolveEntity, resolveSource, resolveSource, resolveSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxpResolver

public JaxpResolver(SourceResolver sourceResolver,
                    EntityResolver entityResolver)

Create a new JaxpResolver instance.

Method Detail

resolveResource

public LSInput resolveResource(String type,
                               String namespace,
                               String systemId,
                               String publicId,
                               String base)
                        throws LSException

Resolve a resource into a LSInput from the provided location information.

This method will obtain a InputSource instance invoking the ValidationResolver.resolveEntity(String, String, String) method return it wrapped in a JaxpInput instance.

Specified by:
resolveResource in interface LSResourceResolver
Parameters:
type - the type of the resource being resolved.
namespace - the namespace of the resource being resolved.
systemId - the system identifier of the resource being resolved.
publicId - the public identifier of the resource being resolved.
base - the base uri against wich relative resolution should happen.
Returns:
a non null LSInput instance.
Throws:
LSException - wrapping another Exception.


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.