com.novell.admin.ns.nds
Class NDSAttributeFlags

java.lang.Object
  extended bycom.novell.admin.ns.nds.NDSAttributeFlags
All Implemented Interfaces:
java.lang.Cloneable

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

Maintains the NDS schema attribute flag information.


Field Summary
static int HIDDEN
           
static int NONREMOVABLE
           
static int PER_REPLICA
           
static int PUBLIC_READ
           
static int READ_ONLY
           
static int SERVER_READ
           
static int SINGLE_VALUED
           
static int SIZED
           
static int STRING
           
static int SYNC_IMMEDIATE
           
static int WRITE_MANAGED
           
 
Constructor Summary
NDSAttributeFlags(int flags)
          Constructor.
 
Method Summary
 void clearFlag(int flagId)
          Clears a specific flag.
 java.lang.Object clone()
          Returns a copy of this object.
 boolean equals(java.lang.Object obj)
          Compares an NDSAttributeFlags against another for equality.
 int getFlags()
          Returns the attribute flags.
 java.lang.String[] getStrings(long upper, long lower)
          Returns a list of strings based on the bit fields set in the flags.
 boolean isFlagSet(int flagId)
          Determines if a specific attribute flag is set.
 void setFlag(int flagId)
          Sets a specific attribute flag.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

NONREMOVABLE

public static final int NONREMOVABLE
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

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

STRING

public static final int STRING
See Also:
Constant Field Values

SYNC_IMMEDIATE

public static final int SYNC_IMMEDIATE
See Also:
Constant Field Values

WRITE_MANAGED

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

NDSAttributeFlags

public NDSAttributeFlags(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 - The flag to clear.

clone

public java.lang.Object clone()
Returns a copy of this object.

Returns:
A copy of this object.

equals

public boolean equals(java.lang.Object obj)
Compares an NDSAttributeFlags against another for equality.

Parameters:
obj - Another NDSAttributeFlags object.
Returns:
True if the objects are equal, false otherwise.

getFlags

public int getFlags()
Returns the attribute flags.

Returns:
The attribute flags.

getStrings

public java.lang.String[] getStrings(long upper,
                                     long lower)
Returns a list of strings based on the bit fields set in the flags.

Parameters:
upper - The upper limit that is set if the attribute is sized.
lower - The lower limit that is set if the attribute is sized.
Returns:
A list of strings representing the flags that are set.

isFlagSet

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

Parameters:
flagId - The flag to check.
Returns:
True if the flag is set, otherwise false.

setFlag

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

Parameters:
flagId - The 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.