com.flexive.shared.structure
Enum UniqueMode

java.lang.Object
  extended by java.lang.Enum<UniqueMode>
      extended by com.flexive.shared.structure.UniqueMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UniqueMode>

public enum UniqueMode
extends java.lang.Enum<UniqueMode>

Modes for uniqueness of properties

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Enum Constant Summary
DerivedTypes
          Unique for this type and all parent or derived types (check on property id for all affected types)
Global
          Globally unique across all usages of a property (check on property id)
Instance
          Unique within an instance (check on property id within instance)
None
          No uniqueness
Type
          Unique within a type (check on property id for current type)
 
Method Summary
static UniqueMode getById(int id)
          Get a UniqueMode by its id
 int getId()
          Getter for the id
static UniqueMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UniqueMode[] 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

None

public static final UniqueMode None
No uniqueness


Global

public static final UniqueMode Global
Globally unique across all usages of a property (check on property id)


Type

public static final UniqueMode Type
Unique within a type (check on property id for current type)


DerivedTypes

public static final UniqueMode DerivedTypes
Unique for this type and all parent or derived types (check on property id for all affected types)


Instance

public static final UniqueMode Instance
Unique within an instance (check on property id within instance)

Method Detail

values

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

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

valueOf

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

getId

public int getId()
Getter for the id

Returns:
id

getById

public static UniqueMode getById(int id)
                          throws FxNotFoundException
Get a UniqueMode by its id

Parameters:
id - internal id
Returns:
UniqueMode
Throws:
FxNotFoundException - on errors