com.novell.admin.ns.ldap
Class LDAPObjectAttribute

java.lang.Object
  extended bycom.novell.admin.ns.ObjectAttribute
      extended bycom.novell.admin.ns.ldap.LDAPObjectAttribute
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public final class LDAPObjectAttribute
extends ObjectAttribute

Novell Directory Services specific Attribute implementation.

See Also:
Serialized Form

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

Constructor Detail

LDAPObjectAttribute

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

This constructor may be used for attributes including read-only. It makes sure that only one value gets added for single valued attributes determined by the attributes syntax. This method also makes sure that if the values are sized that they will only be added to the attribute if the values are withing the limits.

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

One of the following conditions.

  • NamespaceException.READONLY_ATTRIBUTE
  • NamespaceException.WRONG_SYNTAX
  • NamespaceException.VALUE_NOT_WITHIN_BOUNDS
  • NamespaceException.SINGLE_VALUED_ATTRIBUTE
  • NamespaceException.DUPLICATE_VALUE

  • LDAPObjectAttribute

    public LDAPObjectAttribute(LDAPAttributeDefinition def)
    Constructor which 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:
    def - Attribute definition.
    Method Detail

    getLDAPAttributeDefinition

    public LDAPAttributeDefinition getLDAPAttributeDefinition()
    Get the attribute definition.

    Returns:
    The associated LDAP attribute definition.


    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.