edu.internet2.middleware.grouper.attr
Enum AttributeDefValueType

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

public enum AttributeDefValueType
extends Enum<AttributeDefValueType>

Author:
mchyzer

Enum Constant Summary
floating
          floating point number
integer
          whole number type, can be used for date/timestamp or other things
marker
          no value type, the attribute itself is all that is needed
memberId
          this is a reference to a subject in the grouper_members table
string
          text
timestamp
          timestamp stored in integer
 
Method Summary
abstract  Object convertToObject(Object theValue)
          convert from string to an object, e.g.
abstract  boolean hasValue()
          if this type has a value
static AttributeDefValueType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttributeDefValueType valueOfIgnoreCase(String theString, boolean exceptionOnNull)
          do a case-insensitive matching
static AttributeDefValueType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

integer

public static final AttributeDefValueType integer
whole number type, can be used for date/timestamp or other things


timestamp

public static final AttributeDefValueType timestamp
timestamp stored in integer


string

public static final AttributeDefValueType string
text


floating

public static final AttributeDefValueType floating
floating point number


marker

public static final AttributeDefValueType marker
no value type, the attribute itself is all that is needed


memberId

public static final AttributeDefValueType memberId
this is a reference to a subject in the grouper_members table

Method Detail

values

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

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

valueOf

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

convertToObject

public abstract Object convertToObject(Object theValue)
convert from string to an object, e.g. from the string 12 to the integer 12

Parameters:
theValue -
Returns:
the object equivalent

hasValue

public abstract boolean hasValue()
if this type has a value

Returns:
true if value, false if not

valueOfIgnoreCase

public static AttributeDefValueType valueOfIgnoreCase(String theString,
                                                      boolean exceptionOnNull)
do a case-insensitive matching

Parameters:
theString -
exceptionOnNull - will not allow null or blank entries
Returns:
the enum or null or exception if not found