com.evolveum.midpoint.repo.sql.data.common.any
Enum RValueType

java.lang.Object
  extended by java.lang.Enum<RValueType>
      extended by com.evolveum.midpoint.repo.sql.data.common.any.RValueType
All Implemented Interfaces:
Serializable, Comparable<RValueType>

public enum RValueType
extends Enum<RValueType>

Author:
lazyman

Enum Constant Summary
CONTAINER
           
OBJECT
           
PROPERTY
           
REFERENCE
           
 
Method Summary
 Class<? extends Item> getItemClass()
           
static RValueType getTypeFromItemClass(Class<? extends Item> clazz)
           
static RValueType getTypeFromValueClass(Class<? extends PrismValue> clazz)
           
 Class<? extends PrismValue> getValueClass()
           
static RValueType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RValueType[] 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

PROPERTY

public static final RValueType PROPERTY

CONTAINER

public static final RValueType CONTAINER

OBJECT

public static final RValueType OBJECT

REFERENCE

public static final RValueType REFERENCE
Method Detail

values

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

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

valueOf

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

getValueClass

public Class<? extends PrismValue> getValueClass()

getItemClass

public Class<? extends Item> getItemClass()

getTypeFromItemClass

public static RValueType getTypeFromItemClass(Class<? extends Item> clazz)

getTypeFromValueClass

public static RValueType getTypeFromValueClass(Class<? extends PrismValue> clazz)


Copyright © 2013 evolveum. All Rights Reserved.