com.mysema.query.codegen
Enum TypeCategory

java.lang.Object
  extended by java.lang.Enum<TypeCategory>
      extended by com.mysema.query.codegen.TypeCategory
All Implemented Interfaces:
Serializable, Comparable<TypeCategory>

@Immutable
public enum TypeCategory
extends Enum<TypeCategory>

TypeCategory defines the expression type used for a Field

Author:
tiwe

Enum Constant Summary
ARRAY
           
BOOLEAN
           
COLLECTION
           
COMPARABLE
           
DATE
           
DATETIME
           
ENTITY
           
LIST
           
MAP
           
NUMERIC
           
SET
           
SIMPLE
           
STRING
           
TIME
           
 
Method Summary
static TypeCategory get(PropertyType propertyType)
           
static TypeCategory get(String className)
           
 TypeCategory getSuperType()
           
 boolean isSubCategoryOf(TypeCategory ancestor)
          transitive and reflexive subCategoryOf check
 boolean supports(Class<?> cl)
           
 boolean supports(String className)
           
static TypeCategory valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TypeCategory[] 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

SIMPLE

public static final TypeCategory SIMPLE

MAP

public static final TypeCategory MAP

COLLECTION

public static final TypeCategory COLLECTION

LIST

public static final TypeCategory LIST

SET

public static final TypeCategory SET

ARRAY

public static final TypeCategory ARRAY

COMPARABLE

public static final TypeCategory COMPARABLE

BOOLEAN

public static final TypeCategory BOOLEAN

DATE

public static final TypeCategory DATE

DATETIME

public static final TypeCategory DATETIME

ENTITY

public static final TypeCategory ENTITY

NUMERIC

public static final TypeCategory NUMERIC

STRING

public static final TypeCategory STRING

TIME

public static final TypeCategory TIME
Method Detail

values

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

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

valueOf

public static TypeCategory 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

getSuperType

@Nullable
public TypeCategory getSuperType()

supports

public boolean supports(Class<?> cl)

supports

public boolean supports(String className)

isSubCategoryOf

public boolean isSubCategoryOf(TypeCategory ancestor)
transitive and reflexive subCategoryOf check

Parameters:
ancestor -
Returns:

get

public static TypeCategory get(String className)

get

@Nullable
public static TypeCategory get(PropertyType propertyType)


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