org.mycore.common
Class MCRNormalizer

java.lang.Object
  extended by org.mycore.common.MCRNormalizer

public class MCRNormalizer
extends Object

This class implements only static methods to normalize text values. Rules written as x>u .You can configure this normalization with three property values

Version:
$Revision: 15222 $ $Date: 2009-05-19 12:25:55 +0200 (Tue, 19 May 2009) $
Author:
Frank Lützenkirchen, Thomas Scheffler (yagee), Jens Kupferschmidt, Harald Richter

Field Summary
(package private) static Logger logger
           
 
Constructor Summary
MCRNormalizer()
           
 
Method Summary
static String normalizeString(String in)
          This method replaces umlauts and other special characters of languages like german to normalized lowercase a-z characters.
static String normalizeString(String in, boolean reallyNormalize)
           
static void setDoNormalize(boolean value)
          Activates or deactivates normalizing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static Logger logger
Constructor Detail

MCRNormalizer

public MCRNormalizer()
Method Detail

normalizeString

public static final String normalizeString(String in)
This method replaces umlauts and other special characters of languages like german to normalized lowercase a-z characters.

Parameters:
in - the String to be normalized
Returns:
the normalized String in lower case.

normalizeString

public static final String normalizeString(String in,
                                           boolean reallyNormalize)

setDoNormalize

public static final void setDoNormalize(boolean value)
Activates or deactivates normalizing. Used in miless software to make indexing of scorm and searching possible

Parameters:
value - true normalize strings false do not normalize strings