com.elasticpath.service.index.impl
Class AnalyzerImpl

java.lang.Object
  extended by com.elasticpath.service.index.impl.AnalyzerImpl
All Implemented Interfaces:
Analyzer

public class AnalyzerImpl
extends java.lang.Object
implements Analyzer

Provides a bunch of analyzing methods.


Constructor Summary
AnalyzerImpl()
           
 
Method Summary
 java.lang.String analyze(java.util.Date date)
          Analyzes the given date.
 java.lang.String analyze(int value)
          Analyzes the given int.
 java.lang.String analyze(long value)
          Analyzes the given long.
 java.lang.String analyze(java.lang.String text, java.util.Locale locale)
          Analyzes the given text based on the given locale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzerImpl

public AnalyzerImpl()
Method Detail

analyze

public java.lang.String analyze(java.util.Date date)
Analyzes the given date.

Specified by:
analyze in interface Analyzer
Parameters:
date - the date to analyze
Returns:
the analyzed text

analyze

public java.lang.String analyze(int value)
Analyzes the given int.

Specified by:
analyze in interface Analyzer
Parameters:
value - the int value to analyze
Returns:
the analyzed text

analyze

public java.lang.String analyze(long value)
Analyzes the given long.

Specified by:
analyze in interface Analyzer
Parameters:
value - the long value to analyze
Returns:
the analyzed text

analyze

public java.lang.String analyze(java.lang.String text,
                                java.util.Locale locale)
Analyzes the given text based on the given locale.

Specified by:
analyze in interface Analyzer
Parameters:
text - the text to analyze
locale - the locale
Returns:
the analyzed text