Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.search.api.client.querymodel
Class LuceneMinimalEscaper

java.lang.Object
  extended by org.nuxeo.ecm.core.search.api.client.querymodel.LuceneMinimalEscaper
All Implemented Interfaces:
Escaper

public class LuceneMinimalEscaper
extends java.lang.Object
implements Escaper

A very minimal escaper: does double quotes (putting just one is incorrect), +, - and !

Author:
Georges Racinet

Constructor Summary
LuceneMinimalEscaper()
           
 
Method Summary
 java.lang.String escape(java.lang.String s)
          Escapes the provided string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneMinimalEscaper

public LuceneMinimalEscaper()
Method Detail

escape

public java.lang.String escape(java.lang.String s)
Description copied from interface: Escaper
Escapes the provided string

Specified by:
escape in interface Escaper
Returns:
the escaped string

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.