|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.webdav.util.SimpleNamespacesProvider
public class SimpleNamespacesProvider
Simple name space provider implementation
Nested Class Summary | |
---|---|
protected static class |
SimpleNamespacesProvider.NamespaceSlot
Class that defines namespace |
Field Summary | |
---|---|
protected SimpleNamespacesProvider.NamespaceSlot[] |
namespaces
Array of namespaces |
protected int |
numberOfNamespaces
Number of namespaces in the array |
Constructor Summary | |
---|---|
SimpleNamespacesProvider()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SimpleNamespacesProvider.NamespaceSlot[] namespaces
protected int numberOfNamespaces
Constructor Detail |
---|
public SimpleNamespacesProvider()
Method Detail |
---|
public String[] getDefinedURLs()
getDefinedURLs
in interface NamespacesProvider
public String getAssignedPrefix(String url)
getAssignedPrefix
in interface NamespacesProvider
url
- URL
public XMLParserHandler getParserHandler(String url)
XMLParserHandler
for given URL
getParserHandler
in interface NamespacesProvider
url
- URL
XMLParserHandler
for given URLpublic void addNamespace(String url, String preferredPrefix, XMLParserHandler parserHandler)
addNamespace
in interface NamespacesProvider
url
- namespace's URLpreferredPrefix
- preferred prefixparserHandler
- parser handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |