Class AbstractNamespaceMappings
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.AbstractNamespaceMappings
-
- All Implemented Interfaces:
NamespaceMappings
,NamespaceResolver
- Direct Known Subclasses:
FileBasedNamespaceMappings
,NSRegistryBasedNamespaceMappings
public abstract class AbstractNamespaceMappings extends Object implements NamespaceMappings, NamespaceResolver
AbstractNamespaceMappings
is the base class for index internal namespace mappings.
-
-
Constructor Summary
Constructors Constructor Description AbstractNamespaceMappings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
translateName(Name qName)
Translates a name from a session local namespace mapping into a search index private namespace mapping.String
translatePath(Path path)
Translates a path into a search index private namespace mapping.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
getPrefix, getURI
-
-
-
-
Method Detail
-
translateName
public String translateName(Name qName) throws IllegalNameException
Translates a name from a session local namespace mapping into a search index private namespace mapping.- Specified by:
translateName
in interfaceNamespaceMappings
- Parameters:
qName
- the name to translate- Returns:
- the translated JCR name
- Throws:
IllegalNameException
- if the name cannot be translated.
-
translatePath
public String translatePath(Path path) throws IllegalNameException
Translates a path into a search index private namespace mapping.- Specified by:
translatePath
in interfaceNamespaceMappings
- Parameters:
path
- the path to translate- Returns:
- the translated path.
- Throws:
IllegalNameException
- if the name cannot be translated.
-
-