com.novell.admin.ns.nds
Class NDSAttributeFlags

java.lang.Object
  |
  +--com.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

SINGLE_VALUED

public static final int SINGLE_VALUED

SIZED

public static final int SIZED

NONREMOVABLE

public static final int NONREMOVABLE

READ_ONLY

public static final int READ_ONLY

HIDDEN

public static final int HIDDEN

STRING

public static final int STRING

SYNC_IMMEDIATE

public static final int SYNC_IMMEDIATE

PUBLIC_READ

public static final int PUBLIC_READ

SERVER_READ

public static final int SERVER_READ

WRITE_MANAGED

public static final int WRITE_MANAGED

PER_REPLICA

public static final int PER_REPLICA
Constructor Detail

NDSAttributeFlags

public NDSAttributeFlags(int flags)
Constructor.
Parameters:
flags - The initial value of the attribute flags.
Method Detail

getFlags

public int getFlags()
Returns the attribute flags.
Returns:
The attribute flags.

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.
Overrides:
equals in class java.lang.Object

isFlagSet

public boolean isFlagSet(int flagId)
Determines if a specific attribute flag is set.
Parameters:
flagId - The flag to check.

setFlag

public void setFlag(int flagId)
Sets a specific attribute flag.
Parameters:
flagId - The flag to set.

clearFlag

public void clearFlag(int flagId)
Clears a specific flag.
Parameters:
flagId - The flag to clear.

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.

clone

public java.lang.Object clone()
Returns a copy of this object.
Overrides:
clone in class java.lang.Object


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.