net.sf.mmapps.modules.lucenesearch.util
Class SearchValidator

java.lang.Object
  extended bynet.sf.mmapps.modules.lucenesearch.util.SearchValidator

public class SearchValidator
extends java.lang.Object

Version:
$Revision: 1.1 $
Author:
Wouter Heijke

Constructor Summary
SearchValidator()
           
 
Method Summary
static boolean check(java.lang.String str)
          Checks if a String for some things Lucene expects as a good query string.
static java.lang.String validate(java.lang.String str)
          Validate a string for use as a query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchValidator

public SearchValidator()
Method Detail

check

public static boolean check(java.lang.String str)
Checks if a String for some things Lucene expects as a good query string.

Parameters:
str - the String to check, may be null
Returns:
true if the String is not empty and not null and not whitespace

validate

public static java.lang.String validate(java.lang.String str)
Validate a string for use as a query

Parameters:
str - The string to check
Returns:
Validated string


Copyright © 2003-2005 mmapps. All Rights Reserved.