Package org.corpus_tools.graphannis
Enum CorpusStorageManager.QueryLanguage
- java.lang.Object
-
- java.lang.Enum<CorpusStorageManager.QueryLanguage>
-
- org.corpus_tools.graphannis.CorpusStorageManager.QueryLanguage
-
- All Implemented Interfaces:
Serializable,Comparable<CorpusStorageManager.QueryLanguage>
- Enclosing class:
- CorpusStorageManager
public static enum CorpusStorageManager.QueryLanguage extends Enum<CorpusStorageManager.QueryLanguage>
An enum over all supported query languages of graphANNIS. Currently, only the ANNIS Query Language (AQL) and its variants are supported, but this enum allows us to add a support for older query language versions or completely new query languages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AQLDefault ANNIS query language implementation/specificationAQLQuirksV3Emulates the (sometimes problematic) behavior of AQL used in ANNIS 3
-
Field Summary
Fields Modifier and Type Field Description protected intcapiVal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CorpusStorageManager.QueryLanguagevalueOf(String name)Returns the enum constant of this type with the specified name.static CorpusStorageManager.QueryLanguage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AQL
public static final CorpusStorageManager.QueryLanguage AQL
Default ANNIS query language implementation/specification
-
AQLQuirksV3
public static final CorpusStorageManager.QueryLanguage AQLQuirksV3
Emulates the (sometimes problematic) behavior of AQL used in ANNIS 3
-
-
Method Detail
-
values
public static CorpusStorageManager.QueryLanguage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CorpusStorageManager.QueryLanguage c : CorpusStorageManager.QueryLanguage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CorpusStorageManager.QueryLanguage 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 nameNullPointerException- if the argument is null
-
-