|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.name.AbstractNamespaceResolver org.apache.jackrabbit.util.name.NamespaceMapping
A Simple Namespace Mapping table. Mappings can be added and then the object can be used as a NamespaceResolver. Additionally, it can be based on a underlying NamespaceResolver
Constructor Summary | |
NamespaceMapping()
|
|
NamespaceMapping(NamespaceResolver base)
Constructor |
Method Summary | |
boolean |
equals(Object obj)
Override equals() |
String |
getPrefix(String uri)
Returns the prefix which is mapped to the given URI. |
Map |
getPrefixToURIMapping()
Return a Map of prefix to URI mappings currently registered. |
String |
getURI(String prefix)
Returns the URI to which the given prefix is mapped. |
Map |
getURIToPrefixMapping()
Return a Map of URI to prefix mappings currently registered. |
boolean |
hasPrefix(String prefix)
Returns true if prefix is already mapped to some URI. |
void |
setMapping(String prefix,
String uri)
Set a prefix == URI one-to-one mapping |
String |
toString()
Override toString() |
Methods inherited from class org.apache.jackrabbit.name.AbstractNamespaceResolver |
addListener, getJCRName, getQName, notifyNamespaceAdded, notifyNamespaceRemapped, removeListener |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NamespaceMapping()
public NamespaceMapping(NamespaceResolver base)
Method Detail |
public String getPrefix(String uri) throws NamespaceException
uri
- namespace URI
NamespaceException
- if the URI is unknown.public String getURI(String prefix) throws NamespaceException
prefix
- namespace prefix
NamespaceException
- if the prefix is unknown.public boolean hasPrefix(String prefix)
public void setMapping(String prefix, String uri) throws NamespaceException
prefix
- uri
-
NamespaceException
public Map getPrefixToURIMapping()
public Map getURIToPrefixMapping()
public boolean equals(Object obj)
obj
-
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |