com.novell.admin.ns.ldap
Class LDAPAttributeFlags

java.lang.Object
  extended bycom.novell.admin.ns.ldap.LDAPAttributeFlags
All Implemented Interfaces:
java.lang.Cloneable

public final class LDAPAttributeFlags
extends java.lang.Object
implements java.lang.Cloneable

Keeps track of the LDAP schema attribute flag information.


Field Summary
static int BOTH_MANAGED
           
static int ENCRYPTED_SYNC
           
static int HIDDEN
           
static int NO_SYNC_IMMEDIATE
           
static int NONREMOVABLE
           
static int OPERATIONAL
           
static int PER_REPLICA
           
static int PUBLIC_READ
           
static int READ_ONLY
           
static int SCHEDULE_SYNC_NEVER
           
static int SERVER_READ
           
static int SINGLE_VALUED
           
static int SIZED
           
static int SPARSE_OPERATIONAL
           
static int SPARSE_REQUIRED
           
static int WRITE_MANAGED
           
 
Constructor Summary
LDAPAttributeFlags(int flags)
          Constructor.
 
Method Summary
 void clearFlag(int flagId)
          Clears a specific flag.
 java.lang.Object clone()
          Clones this object.
 boolean equals(java.lang.Object obj)
          Check for equality.
 int getFlags()
          Get the flags.
 boolean isFlagSet(int flagId)
          Checks if a specific flag is set.
 void setFlag(int flagId)
          Sets a specific flag.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOTH_MANAGED

public static final int BOTH_MANAGED
See Also:
Constant Field Values

ENCRYPTED_SYNC

public static final int ENCRYPTED_SYNC
See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

NO_SYNC_IMMEDIATE

public static final int NO_SYNC_IMMEDIATE
See Also:
Constant Field Values

NONREMOVABLE

public static final int NONREMOVABLE
See Also:
Constant Field Values

OPERATIONAL

public static final int OPERATIONAL
See Also:
Constant Field Values

PER_REPLICA

public static final int PER_REPLICA
See Also:
Constant Field Values

PUBLIC_READ

public static final int PUBLIC_READ
See Also:
Constant Field Values

READ_ONLY

public static final int READ_ONLY
See Also:
Constant Field Values

SCHEDULE_SYNC_NEVER

public static final int SCHEDULE_SYNC_NEVER
See Also:
Constant Field Values

SERVER_READ

public static final int SERVER_READ
See Also:
Constant Field Values

SINGLE_VALUED

public static final int SINGLE_VALUED
See Also:
Constant Field Values

SIZED

public static final int SIZED
See Also:
Constant Field Values

SPARSE_OPERATIONAL

public static final int SPARSE_OPERATIONAL
See Also:
Constant Field Values

SPARSE_REQUIRED

public static final int SPARSE_REQUIRED
See Also:
Constant Field Values

WRITE_MANAGED

public static final int WRITE_MANAGED
See Also:
Constant Field Values
Constructor Detail

LDAPAttributeFlags

public LDAPAttributeFlags(int flags)
Constructor.

Parameters:
flags - the initial value of the attribute flags.
Method Detail

clearFlag

public void clearFlag(int flagId)
Clears a specific flag.

Parameters:
flagId - specific flag to clear.

clone

public java.lang.Object clone()
Clones this object.

Returns:
a copy of this object.

equals

public boolean equals(java.lang.Object obj)
Check for equality.

Parameters:
obj - Another LDAPAttributeFlags object.
Returns:
true if equal, false otherwise.

getFlags

public int getFlags()
Get the flags.

Returns:
flags.

isFlagSet

public boolean isFlagSet(int flagId)
Checks if a specific flag is set.

Parameters:
flagId - specific flag to check.
Returns:
true if flag is set, otherwise false.

setFlag

public void setFlag(int flagId)
Sets a specific flag.

Parameters:
flagId - specific flag to set.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.