|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.DereferencePolicy
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DereferencePolicy
This class defines a data type for dereference policy values. Clients should
generally use one of the NEVER
, SEARCHING
, FINDING
,
or ALWAYS
values, although it is possible to create a new dereference
policy with a specified integer value if necessary using the
valueOf(int)
method. The following dereference policy values are
defined:
NEVER
-- Indicates that the server should not dereference any
aliases that it encounters.SEARCHING
-- Indicates that the server should dereference any
aliases that it may encounter while examining candidate entries, but it
should not dereference the base entry if it happens to be an alias
entry.FINDING
-- Indicates that the server should dereference the
base entry if it happens to be an alias entry, but it should not
dereference any alias entries that may be encountered while examining
candidate entries.ALWAYS
-- Indicates that the server should dereference the base
entry if it happens to be an alias entry, and should also dereference
any entries that may be encountered while examining candidates.
Field Summary | |
---|---|
static DereferencePolicy |
ALWAYS
A predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, and should also dereference any entries that may be encountered while examining candidates. |
static DereferencePolicy |
FINDING
A predefined dereference policy value which indicates that the server should dereference the base entry if it happens to be an alias entry, but it should not dereference any alias entries that may be encountered while examining candidate entries. |
static DereferencePolicy |
NEVER
A predefined dereference policy value which indicates that the server should not dereference any aliases that it encounters. |
static DereferencePolicy |
SEARCHING
A predefined dereference policy value which indicates that the server should dereference any aliases that it may encounter while examining candidate entries, but it should not dereference the base entry if it happens to be an alias entry. |
Method Summary | |
---|---|
static DereferencePolicy |
definedValueOf(int intValue)
Retrieves the predefined dereference policy with the specified integer value. |
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this dereference policy. |
java.lang.String |
getName()
Retrieves the name for this dereference policy. |
int |
hashCode()
The hash code for this dereference policy. |
int |
intValue()
Retrieves the integer value for this dereference policy. |
java.lang.String |
toString()
Retrieves a string representation of this dereference policy. |
static DereferencePolicy |
valueOf(int intValue)
Retrieves the dereference policy with the specified integer value. |
static DereferencePolicy[] |
values()
Retrieves an array of all dereference policies defined in the LDAP SDK. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DereferencePolicy NEVER
public static final DereferencePolicy SEARCHING
public static final DereferencePolicy FINDING
public static final DereferencePolicy ALWAYS
Method Detail |
---|
public java.lang.String getName()
public int intValue()
public static DereferencePolicy valueOf(int intValue)
intValue
- The integer value for which to retrieve the corresponding
dereference policy.
public static DereferencePolicy definedValueOf(int intValue)
intValue
- The integer value for which to retrieve the corresponding
dereference policy.
null
if the provided value does not match any of the
predefined policies.public static DereferencePolicy[] values()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.
true
if the provided object is a dereference policy that
is equal to this dereference policy, or false
if not.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |