com.mysema.query.types
Enum PathType

java.lang.Object
  extended by java.lang.Enum<PathType>
      extended by com.mysema.query.types.PathType
All Implemented Interfaces:
Operator<Path<?>>, Serializable, Comparable<PathType>

public enum PathType
extends Enum<PathType>
implements Operator<Path<?>>

PathType represents the relation of a Path to its parent


Enum Constant Summary
ARRAYVALUE
          Indexed array access (array[i])
ARRAYVALUE_CONSTANT
          Indexed array access with constant (array[i])
COLLECTION_ANY
          Access of any element in a collection
LISTVALUE
          Indexed list access (list.get(index))
LISTVALUE_CONSTANT
          Indexed list access with constant (list.get(index))
MAPVALUE
          Map value access (map.get(key))
MAPVALUE_CONSTANT
          Map value access with constant (map.get(key))
PROPERTY
          Property of the parent
VARIABLE
          Root path
 
Method Summary
 String getId()
          Get the unique id for this Operator
 List<Class<?>> getTypes()
          Get the types related to this operator symbols
static PathType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PathType[] 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

ARRAYVALUE

public static final PathType ARRAYVALUE
Indexed array access (array[i])


ARRAYVALUE_CONSTANT

public static final PathType ARRAYVALUE_CONSTANT
Indexed array access with constant (array[i])


COLLECTION_ANY

public static final PathType COLLECTION_ANY
Access of any element in a collection


LISTVALUE

public static final PathType LISTVALUE
Indexed list access (list.get(index))


LISTVALUE_CONSTANT

public static final PathType LISTVALUE_CONSTANT
Indexed list access with constant (list.get(index))


MAPVALUE

public static final PathType MAPVALUE
Map value access (map.get(key))


MAPVALUE_CONSTANT

public static final PathType MAPVALUE_CONSTANT
Map value access with constant (map.get(key))


PROPERTY

public static final PathType PROPERTY
Property of the parent


VARIABLE

public static final PathType VARIABLE
Root path

Method Detail

values

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

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

valueOf

public static PathType 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
NullPointerException - if the argument is null

getTypes

public List<Class<?>> getTypes()
Description copied from interface: Operator
Get the types related to this operator symbols

Specified by:
getTypes in interface Operator<Path<?>>
Returns:

getId

public String getId()
Description copied from interface: Operator
Get the unique id for this Operator

Specified by:
getId in interface Operator<Path<?>>
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.