Nuxeo ECM Projects 5.4.3-SNAPSHOT

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 Object
implements Escaper

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

Author:
Georges Racinet

Constructor Summary
LuceneMinimalEscaper()
           
 
Method Summary
 String escape(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 String escape(String s)
Description copied from interface: Escaper
Escapes the provided string

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.