public enum AliasDerefMode extends java.lang.Enum<AliasDerefMode>
| Enum Constant and Description |
|---|
DEREF_ALWAYS
Alias handling mode value that dereferences always
|
DEREF_FINDING_BASE_OBJ
Alias handling mode value that dereferences only in finding the base
|
DEREF_IN_SEARCHING
Alias handling mode value that dereferences only when searching
|
NEVER_DEREF_ALIASES
Alias handling mode value that treats aliases like entries
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
jndiValue
Stores the integer value of each element of the enumeration
|
private int |
value
Stores the integer value of each element of the enumeration
|
| Modifier and Type | Method and Description |
|---|---|
static AliasDerefMode |
getDerefMode(int val)
get the AliasDerefMode corresponding to the integer value passed
|
static AliasDerefMode |
getDerefMode(java.lang.String val)
get the AliasDerefMode corresponding to the string value
jndiValue passed |
static AliasDerefMode |
getEnum(java.util.Map<java.lang.String,java.lang.Object> env)
Gets the enumeration from by extracting the value for the JNDI LDAP
specific environment property, java.naming.ldap.derefAliases, from the
environment.
|
java.lang.String |
getJndiValue() |
int |
getValue() |
boolean |
isDerefAlways()
Checks to see if we dereference while searching and finding the base.
|
boolean |
isDerefFindingBase()
Checks to see if we dereference while finding the base.
|
boolean |
isDerefInSearching()
Checks to see if we dereference while searching.
|
boolean |
isNeverDeref()
Checks to see if we never dereference aliases.
|
static AliasDerefMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AliasDerefMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AliasDerefMode NEVER_DEREF_ALIASES
public static final AliasDerefMode DEREF_IN_SEARCHING
public static final AliasDerefMode DEREF_FINDING_BASE_OBJ
public static final AliasDerefMode DEREF_ALWAYS
private int value
private java.lang.String jndiValue
public static AliasDerefMode[] values()
for (AliasDerefMode c : AliasDerefMode.values()) System.out.println(c);
public static AliasDerefMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static AliasDerefMode getEnum(java.util.Map<java.lang.String,java.lang.Object> env)
env - the JNDI environment with a potential value for the
java.naming.ldap.derefAliases propertypublic boolean isDerefAlways()
public boolean isNeverDeref()
public boolean isDerefInSearching()
public boolean isDerefFindingBase()
public static AliasDerefMode getDerefMode(int val)
val - the AliasDerefMode's integer valuepublic static AliasDerefMode getDerefMode(java.lang.String val)
jndiValue passedval - the AliasDerefMode's string valuepublic java.lang.String getJndiValue()