com.novell.admin.ns.nds
Class NDSClassDefinition

java.lang.Object
  |
  +--com.novell.admin.ns.ClassDefinition
        |
        +--com.novell.admin.ns.DefaultClassDefinition
              |
              +--com.novell.admin.ns.nds.NDSClassDefinition
All Implemented Interfaces:
java.io.Serializable

public final class NDSClassDefinition
extends DefaultClassDefinition

This class represents the schema definition for a particular NDS class.


Fields inherited from class com.novell.admin.ns.ClassDefinition
auxiliary, classContainmentNameVec, className, container, effective, mandatoryAttributeTable, namingAttributeTable, nonRemove, optionalAttributeTable
 
Constructor Summary
NDSClassDefinition(java.lang.String name, NDSClassFlags flags, java.lang.String[] classContainmentNames, java.lang.String[] superClassNames, AttributeDefinition[] mandatoryAttributes, AttributeDefinition[] namingAttributes, AttributeDefinition[] optionalAttributes, byte[] asn1)
          Constructor - Creates an NDS class definition.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines if this definition is equal to another.
 byte[] getASN1Data()
          Retrieves the ASN1 information for this class.
 NDSClassFlags getClassFlags()
          Returns the class flags for this class.
 boolean getExpanded()
          Determines if this class definition is expanded or not.
 java.lang.String[] getSuperClasses()
          Returns the super classes of this object class.
 boolean isInheritedFrom(java.lang.String className)
          Determines if this class is inherited from a specified class.
 void setExpanded(boolean expanded)
          Sets the expanded flag.
 
Methods inherited from class com.novell.admin.ns.DefaultClassDefinition
canBeContainedBy, getContainmentClasses, getMandatoryAttributes, getName, getNamingAttributes, getOptionalAttributes, isAttributeMandatory, isAttributeOptional, isAuxiliary, isClassUsingAttribute, isContainer, isEffective, isNamedBy, isNonRemoveable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NDSClassDefinition

public NDSClassDefinition(java.lang.String name,
                          NDSClassFlags flags,
                          java.lang.String[] classContainmentNames,
                          java.lang.String[] superClassNames,
                          AttributeDefinition[] mandatoryAttributes,
                          AttributeDefinition[] namingAttributes,
                          AttributeDefinition[] optionalAttributes,
                          byte[] asn1)
Constructor - Creates an NDS class definition.
Parameters:
name - The name of the NDS object class.
flags - NDS Class definition flags.
classContainmentNames - The names of classes that this class can be contained by.
superClassNames - The names of all this class's super classes.
mandatoryAttributes - The mandatory attributes for this object class.
namingAttributes - The naming attributes for this object class.
optionalAttributes - The object class's optional attributes.
asn1 - The global ID of the object class.
Method Detail

getSuperClasses

public java.lang.String[] getSuperClasses()
Returns the super classes of this object class.
Returns:
An array containing the super class names.

isInheritedFrom

public boolean isInheritedFrom(java.lang.String className)
Determines if this class is inherited from a specified class.
Parameters:
className - The name of the class to check.
Returns:
True if className is a super class to this class, false otherwise.

getClassFlags

public NDSClassFlags getClassFlags()
Returns the class flags for this class.
Returns:
A copy of the class flags associated with this class.

getASN1Data

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

getExpanded

public boolean getExpanded()
Determines if this class definition is expanded or not.
Returns:
True if this class definition is expanded, false otherwise.

setExpanded

public void setExpanded(boolean expanded)
Sets the expanded flag.
Parameters:
expanded - True if this class definition is expanded, false otherwise.

equals

public boolean equals(java.lang.Object obj)
Determines if this definition is equal to another.
Parameters:
obj - The ClassDefinition to compare this one against.
Returns:
True if objects are equal, false otherwise.
Overrides:
equals in class DefaultClassDefinition


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.