Enum AdDirSyncResponseFlag
- java.lang.Object
-
- java.lang.Enum<AdDirSyncResponseFlag>
-
- org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponseFlag
-
- All Implemented Interfaces:
Serializable
,Comparable<AdDirSyncResponseFlag>
public enum AdDirSyncResponseFlag extends Enum<AdDirSyncResponseFlag>
The flags used in the AdDirSync response.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER
The Ancestors First Order flagLDAP_DIRSYNC_INCREMENTAL_VALUES
The Incremental Values flagLDAP_DIRSYNC_OBJECT_SECURITY
The Object Security flagLDAP_DIRSYNC_PUBLIC_DATA_ONLY
The Public Data Only flag
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getBitmask(Set<AdDirSyncResponseFlag> flags)
Get back the bitmask (as an integer) associated with the given flagsstatic Set<AdDirSyncResponseFlag>
getFlags(int value)
Get back the combination of flags associated with a given valueint
getValue()
String
toString()
static AdDirSyncResponseFlag
valueOf(String name)
Returns the enum constant of this type with the specified name.static AdDirSyncResponseFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDAP_DIRSYNC_OBJECT_SECURITY
public static final AdDirSyncResponseFlag LDAP_DIRSYNC_OBJECT_SECURITY
The Object Security flag
-
LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER
public static final AdDirSyncResponseFlag LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER
The Ancestors First Order flag
-
LDAP_DIRSYNC_PUBLIC_DATA_ONLY
public static final AdDirSyncResponseFlag LDAP_DIRSYNC_PUBLIC_DATA_ONLY
The Public Data Only flag
-
LDAP_DIRSYNC_INCREMENTAL_VALUES
public static final AdDirSyncResponseFlag LDAP_DIRSYNC_INCREMENTAL_VALUES
The Incremental Values flag
-
-
Method Detail
-
values
public static AdDirSyncResponseFlag[] 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 (AdDirSyncResponseFlag c : AdDirSyncResponseFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdDirSyncResponseFlag 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 nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
- Returns:
- The associated value of a given flag
-
toString
public String toString()
- Overrides:
toString
in classEnum<AdDirSyncResponseFlag>
- See Also:
Object.toString()
-
getFlags
public static Set<AdDirSyncResponseFlag> getFlags(int value)
Get back the combination of flags associated with a given value- Parameters:
value
- The integer value- Returns:
- a set of all flags associated with the integer value
-
getBitmask
public static int getBitmask(Set<AdDirSyncResponseFlag> flags)
Get back the bitmask (as an integer) associated with the given flags- Parameters:
flags
- The AdDirSync flags- Returns:
- a bitmask in integer form associated with the set of flags
-
-