org.apache.jackrabbit.core.query.lucene
Interface NamespaceMappings

All Superinterfaces:
NamespaceResolver
All Known Implementing Classes:
AbstractNamespaceMappings, FileBasedNamespaceMappings, NSRegistryBasedNamespaceMappings

public interface NamespaceMappings
extends NamespaceResolver

The class NamespaceMappings holds a namespace mapping that is used internally in the search index. Storing paths with the full uri of a namespace would require too much space in the search index.


Method Summary
 String translateName(Name name)
          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 interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver
getPrefix, getURI
 

Method Detail

translateName

String translateName(Name name)
                     throws IllegalNameException
Translates a name from a session local namespace mapping into a search index private namespace mapping.

Parameters:
name - the name to translate
Returns:
the translated JCR name
Throws:
IllegalNameException - if the name cannot be translated.

translatePath

String translatePath(Path path)
                     throws IllegalNameException
Translates a path into a search index private namespace mapping.

Parameters:
path - the path to translate
Returns:
the translated path.
Throws:
IllegalNameException - if the name cannot be translated.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.