Nitido Inc.

com.nitido.directory
Class DirModifier

java.lang.Object
  extended by com.nitido.directory.DirModifier

public class DirModifier
extends java.lang.Object

The DirModifier class contains the details of a directory attribute that is going to be modified.


Field Summary
static int ADD
          Constant for defining the command operation for add a new attribute value.
static int REMOVE
          Constant for defining the command operation for remove the existing attribute values.
static int REPLACE
          Constant for defining the command operation for replacing an attribute with the specified new values.
 
Constructor Summary
DirModifier(int command, java.lang.String key, java.io.Serializable[] values)
          Default constructor of DirModifier.
 
Method Summary
 int getCommand()
          Get the command field of the DirModifier.
 java.lang.String getKey()
          Get the key field of the DirModifier.
 java.io.Serializable[] getValues()
          Get the values field of the DirModifier.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Constant for defining the command operation for add a new attribute value. The actual value of the constant is 0.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Constant for defining the command operation for remove the existing attribute values. If the DirModifier does not contain any values, the attribute will be completely removed. The actual value of the constant is 1.

See Also:
Constant Field Values

REPLACE

public static final int REPLACE
Constant for defining the command operation for replacing an attribute with the specified new values. The actual value of the constant is 2.

See Also:
Constant Field Values
Constructor Detail

DirModifier

public DirModifier(int command,
                   java.lang.String key,
                   java.io.Serializable[] values)
Default constructor of DirModifier.

Parameters:
command - The command of the modification. The valid values have already been defined as the constants ADD, REMOVE and REPLACE.
key - The key of the attribute to be modified.
values - An array of Serializable objects that represents the new values.
Method Detail

getCommand

public int getCommand()
Get the command field of the DirModifier.


getKey

public java.lang.String getKey()
Get the key field of the DirModifier.


getValues

public java.io.Serializable[] getValues()
Get the values field of the DirModifier.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.