com.novell.admin.ns.nds
Class NDSObjectAttribute

java.lang.Object
  |
  +--com.novell.admin.ns.ObjectAttribute
        |
        +--com.novell.admin.ns.nds.NDSObjectAttribute
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public final class NDSObjectAttribute
extends ObjectAttribute

Attribute implementation specific to Novell Directory Services.


Inner classes inherited from class com.novell.admin.ns.ObjectAttribute
ObjectAttribute.ModifyValue
 
Fields inherited from class com.novell.admin.ns.ObjectAttribute
addedValues, attrDefinition, deletedValues, modifiedValues, values
 
Constructor Summary
NDSObjectAttribute(AttributeDefinition attrDef, ValueComponent[] comps)
          Constructor that initializes its list of values.
NDSObjectAttribute(NDSAttributeDefinition def)
          Constructor that does not initialize its list of values.
 
Method Summary
 NDSAttributeDefinition getNDSAttributeDefinition()
          Returns the attribute definition.
 
Methods inherited from class com.novell.admin.ns.ObjectAttribute
addComponent, addComponents, addPropertyChangeListener, clearAddedAttributeValues, clearDeletedAttributeValues, clearModifiedAttributeValues, clone, contains, getAddedComponents, getAttributeDefinition, getBeginingComponents, getComponentCount, getDeletedComponents, getModifiedComponents, getName, getValueComponents, notifyPropertyChangeListeners, propertyChange, removeAllComponents, removeComponent, removePropertyChangeListener, replaceComponent, resetBeginingAttributeValues, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NDSObjectAttribute

public NDSObjectAttribute(NDSAttributeDefinition def)
Constructor that does not initialize its list of values.

Do not use this constructor if this is a read-only attribute because the attribute value(s) will not be initialized.

Parameters:
attrDef - An object attribute definition.

NDSObjectAttribute

public NDSObjectAttribute(AttributeDefinition attrDef,
                          ValueComponent[] comps)
                   throws NamespaceException
Constructor that initializes its list of values.

This constructor may be used for attributes including read-only attributes. It ensures that only one value is added for single-valued attributes, as determined by the attribute's syntax. This method also ensures that sized values will only be added to the attribute if the values are within the limits.

Parameters:
attrDef - The attribute definition.
Throws:
NamespaceException - A condition occured which disallowed the add.

One of the following conditions.

  • NamespaceException.VALUE_NOT_WITHIN_BOUNDS
  • Method Detail

    getNDSAttributeDefinition

    public NDSAttributeDefinition getNDSAttributeDefinition()
    Returns the attribute definition.
    Returns:
    The associated NDS attribute definition.


    API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
    NDS is a registered trademark of Novell, Inc. in the United States and other countries.
    Generated December 17 2003 1746.