Enum Class AttributeDefValueType

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

public enum AttributeDefValueType extends Enum<AttributeDefValueType>
  • Enum Constant Details

  • Method Details

    • values

      public static AttributeDefValueType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AttributeDefValueType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
    • retrieveTypeBasedOnAttributeDefNameId

      public static AttributeDefValueType retrieveTypeBasedOnAttributeDefNameId(String attributeDefNameId, boolean checkSecurity)
      Parameters:
      checkSecurity -
      attributeDefNameId -
      Returns:
      the type