org.objectweb.fractal.fraclet.annotation
Enum Cardinality

java.lang.Object
  extended by java.lang.Enum<Cardinality>
      extended by org.objectweb.fractal.fraclet.annotation.Cardinality
All Implemented Interfaces:
Serializable, Comparable<Cardinality>

public enum Cardinality
extends Enum<Cardinality>

Cardinality of an interface SINGLETON|COLLECTION

Author:
Nicolas Pessemier

Enum Constant Summary
COLLECTION
           
SINGLETON
           
 
Method Summary
 boolean getValue()
           
static Cardinality valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Cardinality[] 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

SINGLETON

public static final Cardinality SINGLETON

COLLECTION

public static final Cardinality COLLECTION
Method Detail

values

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

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

valueOf

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

getValue

public boolean getValue()