edu.vt.middleware.ldap
Enum LdapConfig.SearchScope

java.lang.Object
  extended by java.lang.Enum<LdapConfig.SearchScope>
      extended by edu.vt.middleware.ldap.LdapConfig.SearchScope
All Implemented Interfaces:
Serializable, Comparable<LdapConfig.SearchScope>
Enclosing class:
LdapConfig

public static enum LdapConfig.SearchScope
extends Enum<LdapConfig.SearchScope>

Enum to define the type of search scope. See SearchControls.


Enum Constant Summary
OBJECT
          object level search.
ONELEVEL
          one level search.
SUBTREE
          subtree search.
 
Method Summary
static LdapConfig.SearchScope parseSearchScope(int i)
          Method to convert a JNDI constant value to an enum.
 int scope()
          Returns the search scope integer.
static LdapConfig.SearchScope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LdapConfig.SearchScope[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OBJECT

public static final LdapConfig.SearchScope OBJECT
object level search.


ONELEVEL

public static final LdapConfig.SearchScope ONELEVEL
one level search.


SUBTREE

public static final LdapConfig.SearchScope SUBTREE
subtree search.

Method Detail

values

public static final LdapConfig.SearchScope[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LdapConfig.SearchScope c : LdapConfig.SearchScope.values())
        System.out.println(c);

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

valueOf

public static LdapConfig.SearchScope 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

scope

public int scope()
Returns the search scope integer.

Returns:
int

parseSearchScope

public static LdapConfig.SearchScope parseSearchScope(int i)
Method to convert a JNDI constant value to an enum. Returns null if the supplied constant does not match a known value.

Parameters:
i - search scope
Returns:
search scope


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.