Package eu.clarin.sru.server.fcs.parser
Enum QueryNodeType
- java.lang.Object
-
- java.lang.Enum<QueryNodeType>
-
- eu.clarin.sru.server.fcs.parser.QueryNodeType
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryNodeType>
public enum QueryNodeType extends Enum<QueryNodeType>
Node types of FCS-QL expression tree nodes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPRESSION
simple expressionEXPRESSION_AND
and expressionEXPRESSION_GROUP
group expressionEXPRESSION_NOT
not expressionEXPRESSION_OR
or expressionEXPRESSION_WILDCARD
wildcard expressionQUERY_DISJUNCTION
or queryQUERY_GROUP
group queryQUERY_SEGMENT
segment queryQUERY_SEQUENCE
sequence queryQUERY_WITH_WITHIN
query with within partSIMPLE_WITHIN
simple within part
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryNodeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryNodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY_SEGMENT
public static final QueryNodeType QUERY_SEGMENT
segment query
-
QUERY_GROUP
public static final QueryNodeType QUERY_GROUP
group query
-
QUERY_SEQUENCE
public static final QueryNodeType QUERY_SEQUENCE
sequence query
-
QUERY_DISJUNCTION
public static final QueryNodeType QUERY_DISJUNCTION
or query
-
QUERY_WITH_WITHIN
public static final QueryNodeType QUERY_WITH_WITHIN
query with within part
-
EXPRESSION
public static final QueryNodeType EXPRESSION
simple expression
-
EXPRESSION_WILDCARD
public static final QueryNodeType EXPRESSION_WILDCARD
wildcard expression
-
EXPRESSION_GROUP
public static final QueryNodeType EXPRESSION_GROUP
group expression
-
EXPRESSION_OR
public static final QueryNodeType EXPRESSION_OR
or expression
-
EXPRESSION_AND
public static final QueryNodeType EXPRESSION_AND
and expression
-
EXPRESSION_NOT
public static final QueryNodeType EXPRESSION_NOT
not expression
-
SIMPLE_WITHIN
public static final QueryNodeType SIMPLE_WITHIN
simple within part
-
-
Method Detail
-
values
public static QueryNodeType[] 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 (QueryNodeType c : QueryNodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryNodeType 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
-
-