edu.internet2.middleware.grouper.misc
Enum CompositeType

java.lang.Object
  extended by java.lang.Enum<CompositeType>
      extended by edu.internet2.middleware.grouper.misc.CompositeType
All Implemented Interfaces:
Serializable, Comparable<CompositeType>

public enum CompositeType
extends Enum<CompositeType>
implements Serializable

Composite Type.

Since:
1.0
Version:
$Id: CompositeType.java,v 1.4 2009-03-02 07:33:25 mchyzer Exp $
Author:
blair christensen.

Enum Constant Summary
COMPLEMENT
          the members in the left, which are not in the right (e.g.
INTERSECTION
          the members who are in the left, who are also in the right (right is a required list)
UNION
          the members in the left, or in the right (right is an includes list)
 
Method Summary
 String getName()
          get name of composite type, e.g.
 String toString()
           
static CompositeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CompositeType valueOfIgnoreCase(String theName)
          find the value of a string and ignore case
static CompositeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMPLEMENT

public static final CompositeType COMPLEMENT
the members in the left, which are not in the right (e.g. the right is an excludes list)


UNION

public static final CompositeType UNION
the members in the left, or in the right (right is an includes list)


INTERSECTION

public static final CompositeType INTERSECTION
the members who are in the left, who are also in the right (right is a required list)

Method Detail

values

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

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

valueOf

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

valueOfIgnoreCase

public static CompositeType valueOfIgnoreCase(String theName)
find the value of a string and ignore case

Parameters:
theName -

getName

public String getName()
get name of composite type, e.g. complement, union, intersection

Returns:
name

toString

public String toString()
Overrides:
toString in class Enum<CompositeType>
See Also:
Object.toString()