org.nuiton.validator.xwork2.field
Enum CollectionFieldExpressionValidator.Mode

java.lang.Object
  extended by java.lang.Enum<CollectionFieldExpressionValidator.Mode>
      extended by org.nuiton.validator.xwork2.field.CollectionFieldExpressionValidator.Mode
All Implemented Interfaces:
Serializable, Comparable<CollectionFieldExpressionValidator.Mode>
Enclosing class:
CollectionFieldExpressionValidator

public static enum CollectionFieldExpressionValidator.Mode
extends Enum<CollectionFieldExpressionValidator.Mode>


Enum Constant Summary
ALL
          toutes les valeurs de la collection doivent etre valides
AT_LEAST_ONE
          au moins une entrée de la collection doit etre valide
EXACTLY_ONE
          exactement une entrée dela collection doit être valide
NONE
          aucune valeur de la collection doivent etre valides
UNIQUE_KEY
          detection de clef unique
 
Method Summary
static CollectionFieldExpressionValidator.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CollectionFieldExpressionValidator.Mode[] 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

AT_LEAST_ONE

public static final CollectionFieldExpressionValidator.Mode AT_LEAST_ONE
au moins une entrée de la collection doit etre valide


EXACTLY_ONE

public static final CollectionFieldExpressionValidator.Mode EXACTLY_ONE
exactement une entrée dela collection doit être valide


ALL

public static final CollectionFieldExpressionValidator.Mode ALL
toutes les valeurs de la collection doivent etre valides


NONE

public static final CollectionFieldExpressionValidator.Mode NONE
aucune valeur de la collection doivent etre valides


UNIQUE_KEY

public static final CollectionFieldExpressionValidator.Mode UNIQUE_KEY
detection de clef unique

Method Detail

values

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

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

valueOf

public static CollectionFieldExpressionValidator.Mode 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


Copyright © 2011 CodeLutin. All Rights Reserved.