net.sf.oval
Enum ConstraintTarget

java.lang.Object
  extended by java.lang.Enum<ConstraintTarget>
      extended by net.sf.oval.ConstraintTarget
All Implemented Interfaces:
Serializable, Comparable<ConstraintTarget>

public enum ConstraintTarget
extends Enum<ConstraintTarget>

Author:
Sebastian Thomschke

Enum Constant Summary
CONTAINER
          apply the constraint to the collection / map / array object itself
KEYS
          apply the constraint to the keys of a map
RECURSIVE
          recursively apply the constraint to items of keys and values in case they are lists or arrays themselves
VALUES
          apply the constraint to the values of a the map / the items of the collection / the elements of the array
 
Method Summary
static ConstraintTarget valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConstraintTarget[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

KEYS

public static final ConstraintTarget KEYS
apply the constraint to the keys of a map


VALUES

public static final ConstraintTarget VALUES
apply the constraint to the values of a the map / the items of the collection / the elements of the array


RECURSIVE

public static final ConstraintTarget RECURSIVE
recursively apply the constraint to items of keys and values in case they are lists or arrays themselves


CONTAINER

public static final ConstraintTarget CONTAINER
apply the constraint to the collection / map / array object itself

Method Detail

values

public static final ConstraintTarget[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ConstraintTarget c : ConstraintTarget.values())
        System.out.println(c);

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

valueOf

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


Copyright © 2005–2015 The OVal Development Team. All rights reserved.