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

All Superinterfaces:
NamespaceResolver
All Known Implementing Classes:
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 translatePropertyName(String name, NamespaceResolver resolver)
          Translates a property name from a session local namespace mapping into a search index private namespace mapping.
 
Methods inherited from interface org.apache.jackrabbit.name.NamespaceResolver
getJCRName, getPrefix, getQName, getURI
 

Method Detail

translatePropertyName

String translatePropertyName(String name,
                             NamespaceResolver resolver)
                             throws IllegalNameException,
                                    UnknownPrefixException
Translates a property name from a session local namespace mapping into a search index private namespace mapping.

Parameters:
name - the property name to translate
resolver - the NamespaceResolver of the local session.
Returns:
the translated property name
Throws:
IllegalNameException
UnknownPrefixException


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