org.compass.annotations
Enum AnalyzerType

java.lang.Object
  extended by java.lang.Enum<AnalyzerType>
      extended by org.compass.annotations.AnalyzerType
All Implemented Interfaces:
Serializable, Comparable<AnalyzerType>

public enum AnalyzerType
extends Enum<AnalyzerType>

The intenral Compass supported analyzers. Note the CustomAnalyzer, which is not an analyzer, but specifies that the analyzer that will be used is a custom implementation of Lucene Analyzer/

Author:
kimchy

Enum Constant Summary
Braziliian
           
Chinese
           
Cjk
           
CustomAnalyzer
           
Czech
           
Dutch
           
French
           
German
           
Greek
           
Russian
           
Simple
           
Snowball
          Uses a snowball analyzer.
Standard
           
Stop
           
Whitespace
           
 
Method Summary
static AnalyzerType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AnalyzerType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Standard

public static final AnalyzerType Standard

Simple

public static final AnalyzerType Simple

Whitespace

public static final AnalyzerType Whitespace

Stop

public static final AnalyzerType Stop

Snowball

public static final AnalyzerType Snowball
Uses a snowball analyzer. See SnowballType.


Braziliian

public static final AnalyzerType Braziliian

Cjk

public static final AnalyzerType Cjk

Chinese

public static final AnalyzerType Chinese

Czech

public static final AnalyzerType Czech

German

public static final AnalyzerType German

Greek

public static final AnalyzerType Greek

French

public static final AnalyzerType French

Dutch

public static final AnalyzerType Dutch

Russian

public static final AnalyzerType Russian

CustomAnalyzer

public static final AnalyzerType CustomAnalyzer
Method Detail

values

public static final AnalyzerType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AnalyzerType c : AnalyzerType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AnalyzerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright (c) 2004-2008 The Compass Project.