edu.internet2.middleware.grouperClient.commandLine
Enum GcLdapSearchAttributeConfig.SearchAttributeResultType

java.lang.Object
  extended by java.lang.Enum<GcLdapSearchAttributeConfig.SearchAttributeResultType>
      extended by edu.internet2.middleware.grouperClient.commandLine.GcLdapSearchAttributeConfig.SearchAttributeResultType
All Implemented Interfaces:
Serializable, Comparable<GcLdapSearchAttributeConfig.SearchAttributeResultType>
Enclosing class:
GcLdapSearchAttributeConfig

public static enum GcLdapSearchAttributeConfig.SearchAttributeResultType
extends Enum<GcLdapSearchAttributeConfig.SearchAttributeResultType>

type of result in the ldap search attribute


Enum Constant Summary
BOOLEAN
          if it is one result, with one string, and it matches the input
STRING
          if the is one result, with one string
STRING_LIST
          if there are multiple results, with one string in each
STRING_LIST_LIST
          if there are one or multiple results, and multiple strings in each
 
Method Summary
abstract  String processOutput(GcLdapSearchAttributeConfig gcLdapSearchAttributeConfig, GcLdapSearchAttribute gcLdapSearchAttribute, String outputTemplate)
          process the output
static GcLdapSearchAttributeConfig.SearchAttributeResultType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GcLdapSearchAttributeConfig.SearchAttributeResultType valueOfIgnoreCase(String string)
           
static GcLdapSearchAttributeConfig.SearchAttributeResultType[] 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

STRING

public static final GcLdapSearchAttributeConfig.SearchAttributeResultType STRING
if the is one result, with one string


BOOLEAN

public static final GcLdapSearchAttributeConfig.SearchAttributeResultType BOOLEAN
if it is one result, with one string, and it matches the input


STRING_LIST

public static final GcLdapSearchAttributeConfig.SearchAttributeResultType STRING_LIST
if there are multiple results, with one string in each


STRING_LIST_LIST

public static final GcLdapSearchAttributeConfig.SearchAttributeResultType STRING_LIST_LIST
if there are one or multiple results, and multiple strings in each

Method Detail

values

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

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

valueOf

public static GcLdapSearchAttributeConfig.SearchAttributeResultType 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 GcLdapSearchAttributeConfig.SearchAttributeResultType valueOfIgnoreCase(String string)
Parameters:
string -
Returns:
the type

processOutput

public abstract String processOutput(GcLdapSearchAttributeConfig gcLdapSearchAttributeConfig,
                                     GcLdapSearchAttribute gcLdapSearchAttribute,
                                     String outputTemplate)
process the output

Parameters:
gcLdapSearchAttributeConfig -
gcLdapSearchAttribute -
outputTemplate -
Returns:
the string of the output and a newline on the last line