org.sourceprojects.xmlparser
Interface NamespaceResolver


public interface NamespaceResolver

Interface for NamespaceResolver implementations to resolve namespaces to other URLs than the default ones. Used in standard implementation to redirect input to bundled XML schemata instead of using online version to be able to work in offline state

Since:
0.0.1
Author:
noctarius

Method Summary
 org.w3c.dom.ls.LSInput getInput(java.lang.String type, java.lang.String namespaceURI, java.lang.String publicId, java.lang.String systemId, java.lang.String baseURI)
          Returns an implementation of LSInput for the queried namespace
 java.lang.String getNamespaceURI()
          Returns the namespace URI
 

Method Detail

getNamespaceURI

java.lang.String getNamespaceURI()
Returns the namespace URI

Returns:
Namespace URI as String

getInput

org.w3c.dom.ls.LSInput getInput(java.lang.String type,
                                java.lang.String namespaceURI,
                                java.lang.String publicId,
                                java.lang.String systemId,
                                java.lang.String baseURI)
Returns an implementation of LSInput for the queried namespace

Parameters:
type - Type of the namespace to resolve
namespaceURI - Original namespace URI to resolve
publicId - PublicId of the namespace
systemId - Local SystemId of the namespace
baseURI - Base URI of the namespace
Returns:
The Implementation of LSInput


Copyright © 2010. All Rights Reserved.