org.abstracthorizon.danube.webdav.util
Interface NamespacesProvider

All Known Implementing Classes:
SimpleNamespacesProvider

public interface NamespacesProvider

An interface that defined namespace provider

Author:
Daniel Sendula

Method Summary
 void addNamespace(String url, String preferredPrefix, XMLParserHandler parserHandler)
          Adds new namespace to the provider
 String getAssignedPrefix(String url)
          Returns assigned prefix for given URL
 String[] getDefinedURLs()
          Returns an array of defined URLS
 XMLParserHandler getParserHandler(String url)
          Returns XMLParserHandler for given URL
 

Method Detail

getDefinedURLs

String[] getDefinedURLs()
Returns an array of defined URLS

Returns:
an array of defined URLS

getAssignedPrefix

String getAssignedPrefix(String url)
Returns assigned prefix for given URL

Parameters:
url - URL
Returns:
assigned prefix for given URL

getParserHandler

XMLParserHandler getParserHandler(String url)
Returns XMLParserHandler for given URL

Parameters:
url - URL
Returns:
XMLParserHandler for given URL

addNamespace

void addNamespace(String url,
                  String preferredPrefix,
                  XMLParserHandler parserHandler)
Adds new namespace to the provider

Parameters:
url - namespace's URL
preferredPrefix - preferred prefix
parserHandler - parser handler


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.