com.novell.admin.ns.nds
Class NDSAttributeDefinition

java.lang.Object
  |
  +--com.novell.admin.ns.AttributeDefinition
        |
        +--com.novell.admin.ns.DefaultAttributeDefinition
              |
              +--com.novell.admin.ns.nds.NDSAttributeDefinition
All Implemented Interfaces:
java.io.Serializable

public class NDSAttributeDefinition
extends DefaultAttributeDefinition

Concrete class for NDS attribute definitions.

This is an immutable class.


Fields inherited from class com.novell.admin.ns.AttributeDefinition
lowerBound, name, sized, syntax, upperBound
 
Constructor Summary
NDSAttributeDefinition(java.lang.String attrName, int syntax, int flags, long lBound, long uBound, byte[] asn1)
          Constructor for all NDS attribute definitions.
NDSAttributeDefinition(java.lang.String attrName, NDSSyntax syntax, NDSAttributeFlags flags, long lBound, long uBound, byte[] asn1)
          Constructor for all NDS attribute definitions.
 
Method Summary
 ObjectAttribute createAttribute()
          Creates a valid ObjectAttribute according to this attribute definition.
 boolean equals(java.lang.Object obj)
           
 byte[] getASN1Data()
          Retrieves the ASN1 information for this attribute.
 NDSAttributeFlags getAttributeFlag()
          Returns the attribute flags associated with this attribute definition.
 boolean isAberrant()
          Check to see if the attribute behaves in an atypical manner.
 boolean isHidden()
          Deprecated. Use method in NDSAttributeFlags.
 boolean isReadOnly()
          Deprecated. Use method in NDSAttributeFlags.
 boolean isSingleValued()
          Deprecated. Use method in NDSAttributeFlags.
 
Methods inherited from class com.novell.admin.ns.AttributeDefinition
getLowerBound, getName, getSyntax, getUpperBound, isSized, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NDSAttributeDefinition

public NDSAttributeDefinition(java.lang.String attrName,
                              NDSSyntax syntax,
                              NDSAttributeFlags flags,
                              long lBound,
                              long uBound,
                              byte[] asn1)
                       throws NamespaceException
Constructor for all NDS attribute definitions.
Parameters:
attrName - Name of the attribute.
syntax - NDSSyntax for the attribute.
flags - NDS flags for this attribute.
lBound - Lower bound for values associated with this attribute, if the attribute is sized.
uBound - Upper bound for values associated with this attribute, if this attribute is sized.
asn1 - See NDS Schema Reference.
Throws:
NamespaceException - Attribute is not sizeable.

NDSAttributeDefinition

public NDSAttributeDefinition(java.lang.String attrName,
                              int syntax,
                              int flags,
                              long lBound,
                              long uBound,
                              byte[] asn1)
                       throws NamespaceException
Constructor for all NDS attribute definitions.
Parameters:
attrName - Name of the attribute.
syntax - The attribute syntax.
flags - The attribute flags.
lBound - Lower bound for values associated with this attribute, if this attribute is sized.
uBound - upper bound for values associated with this attribute, if this attribute is sized.
asn1 - See NDS Schema Reference.
Throws:
NamespaceException - Attribute is not sizeable.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AttributeDefinition

isSingleValued

public final boolean isSingleValued()
Deprecated. Use method in NDSAttributeFlags.
Checks to see if the attribute is single-valued.
Returns:
True if single-valued, false otherwise.
Overrides:
isSingleValued in class AttributeDefinition

isHidden

public final boolean isHidden()
Deprecated. Use method in NDSAttributeFlags.
Checks to see if the attribute is hidden.
Returns:
True if hidden, false otherwise.
Overrides:
isHidden in class AttributeDefinition

isReadOnly

public final boolean isReadOnly()
Deprecated. Use method in NDSAttributeFlags.
Checks to see if the attribute is read-only.
Returns:
True if read-only, false otherwise.
Overrides:
isReadOnly in class AttributeDefinition

getAttributeFlag

public final NDSAttributeFlags getAttributeFlag()
Returns the attribute flags associated with this attribute definition.

getASN1Data

public final byte[] getASN1Data()
Retrieves the ASN1 information for this attribute.
Returns:
A new copy of the ASN1 data.

createAttribute

public ObjectAttribute createAttribute()
Creates a valid ObjectAttribute according to this attribute definition.

The ObjectAttribute returned contains a single ValueComponent based on the syntax of the attribute.

Returns:
A new ObjectAttribute.
Overrides:
createAttribute in class AttributeDefinition

isAberrant

public boolean isAberrant()
Check to see if the attribute behaves in an atypical manner.

The only attribute that returns true is the "Object Class" attribute, which cannot be modified like other attributes.

Returns:
True if aberrant, false if multivalued.
Overrides:
isAberrant in class AttributeDefinition


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