org.apache.jackrabbit.core.query.lucene
Class AbstractNamespaceMappings

java.lang.Object
  extended by 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
AbstractNamespaceMappings()
           
 
Method Summary
 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
 

Constructor Detail

AbstractNamespaceMappings

public AbstractNamespaceMappings()
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 interface NamespaceMappings
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 interface NamespaceMappings
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.