com.endeca.portal.lql
Enum LQLBuilder.LQLMDEXType

java.lang.Object
  extended by java.lang.Enum<LQLBuilder.LQLMDEXType>
      extended by com.endeca.portal.lql.LQLBuilder.LQLMDEXType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LQLBuilder.LQLMDEXType>
Enclosing class:
LQLBuilder

public static enum LQLBuilder.LQLMDEXType
extends java.lang.Enum<LQLBuilder.LQLMDEXType>

Represents types that come from MDEX records generated by LQL.


Enum Constant Summary
BOOLEAN
           
DATETIME
           
DOUBLE
           
DURATION
           
GEOCODE
           
INT
           
STRING
           
TIME
           
 
Method Summary
 LQLBuilder.Function getLQLFunction()
          Returns the LQL conversion function to be used on a String typed expression (such as String literal or selecting a string attribute).
 java.lang.String getType()
          Returns the "mdex:type" for this LQLMDEXType
 com.endeca.mdex.lql_parser.types.ExpressionBase makeLiteral(java.lang.String value)
          Makes a literal for the mdex:type.
static LQLBuilder.LQLMDEXType parseLQLMDEXType(java.lang.String value)
          Create an LQLMDEXType from the string form of mdex:types returned from the engine.
static LQLBuilder.LQLMDEXType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LQLBuilder.LQLMDEXType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final LQLBuilder.LQLMDEXType BOOLEAN

DATETIME

public static final LQLBuilder.LQLMDEXType DATETIME

DOUBLE

public static final LQLBuilder.LQLMDEXType DOUBLE

DURATION

public static final LQLBuilder.LQLMDEXType DURATION

GEOCODE

public static final LQLBuilder.LQLMDEXType GEOCODE

INT

public static final LQLBuilder.LQLMDEXType INT

TIME

public static final LQLBuilder.LQLMDEXType TIME

STRING

public static final LQLBuilder.LQLMDEXType STRING
Method Detail

values

public static LQLBuilder.LQLMDEXType[] 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 (LQLBuilder.LQLMDEXType c : LQLBuilder.LQLMDEXType.values())
    System.out.println(c);

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

valueOf

public static LQLBuilder.LQLMDEXType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

parseLQLMDEXType

public static LQLBuilder.LQLMDEXType parseLQLMDEXType(java.lang.String value)
Create an LQLMDEXType from the string form of mdex:types returned from the engine. For example passing in "mdex:int" will return LQLMDEXType.INT

Parameters:
value - The string form of the mdex:type
Returns:
an enum representing the LQLMDEXType

getType

public java.lang.String getType()
Returns the "mdex:type" for this LQLMDEXType


getLQLFunction

public LQLBuilder.Function getLQLFunction()
Returns the LQL conversion function to be used on a String typed expression (such as String literal or selecting a string attribute).


makeLiteral

public com.endeca.mdex.lql_parser.types.ExpressionBase makeLiteral(java.lang.String value)
Makes a literal for the mdex:type. Generally we use string literals and apply conversion functions to these literals to centralize the handling within the MDEX.

Parameters:
value - the value to be converted to a literal
Returns:
a literal ExpressionBase