edu.internet2.middleware.grouper.attr
Enum AttributeDefScopeType

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

public enum AttributeDefScopeType
extends Enum<AttributeDefScopeType>

type of scope, like

Author:
mchyzer

Enum Constant Summary
attributeDefNameIdAssigned
          this attribute can be assigned only if another attribute def name id is assigned
idEquals
          matching exact id
inStem
          stemId of the stem the object needs to be in for this attribute to be assigned
nameEquals
          matching exact name
nameLike
          matching generally on namepsace names, its a like string in DB.
sourceId
          for member type attributes, filter on sourceId (none means allow all)
 
Method Summary
abstract  boolean allowedAssignment(AttributeDefScope attributeDefScope, AttributeAssignable attributeAssignable, AttributeDef attributeDef)
           
static AttributeDefScopeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttributeDefScopeType valueOfIgnoreCase(String string, boolean exceptionOnNull)
          do a case-insensitive matching
static AttributeDefScopeType[] 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

sourceId

public static final AttributeDefScopeType sourceId
for member type attributes, filter on sourceId (none means allow all)


attributeDefNameIdAssigned

public static final AttributeDefScopeType attributeDefNameIdAssigned
this attribute can be assigned only if another attribute def name id is assigned


inStem

public static final AttributeDefScopeType inStem
stemId of the stem the object needs to be in for this attribute to be assigned


nameLike

public static final AttributeDefScopeType nameLike
matching generally on namepsace names, its a like string in DB. Can be stem or substem


nameEquals

public static final AttributeDefScopeType nameEquals
matching exact name


idEquals

public static final AttributeDefScopeType idEquals
matching exact id

Method Detail

values

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

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

valueOf

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

allowedAssignment

public abstract boolean allowedAssignment(AttributeDefScope attributeDefScope,
                                          AttributeAssignable attributeAssignable,
                                          AttributeDef attributeDef)
Parameters:
attributeDefScope -
attributeAssignable -
attributeDef -
Returns:
true if allowed, false if not allowed

valueOfIgnoreCase

public static AttributeDefScopeType valueOfIgnoreCase(String string,
                                                      boolean exceptionOnNull)
do a case-insensitive matching

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