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
AbstractNamespaceMappingsis 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 StringtranslateName(Name qName)Translates a name from a session local namespace mapping into a search index private namespace mapping.StringtranslatePath(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:
translateNamein 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:
translatePathin interfaceNamespaceMappings- Parameters:
path- the path to translate- Returns:
- the translated path.
- Throws:
IllegalNameException- if the name cannot be translated.
-
-