com.novell.admin.ns.fs
Class FSObjectAttribute

java.lang.Object
  |
  +--com.novell.admin.ns.ObjectAttribute
        |
        +--com.novell.admin.ns.fs.FSObjectAttribute
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
NWFSObjectAttribute

public class FSObjectAttribute
extends ObjectAttribute

File System specific Attribute implementation.


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
FSObjectAttribute(AttributeDefinition attrDef, ValueComponent[] comps)
          Constructor that initializes its list of values.
FSObjectAttribute(FSAttributeDefinition def)
          Constructor which does not initialize its list of values.
 
Method Summary
 FSAttributeDefinition getFSAttributeDefinition()
          Get 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

FSObjectAttribute

public FSObjectAttribute(FSAttributeDefinition 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:
attrDef - Attribute definition.

FSObjectAttribute

public FSObjectAttribute(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
  • Method Detail

    getFSAttributeDefinition

    public FSAttributeDefinition getFSAttributeDefinition()
    Get the attribute definition.
    Returns:
    The associated File System attribute definition.


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