|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.novell.admin.ns.ClassDefinition
|
+--com.novell.admin.ns.DefaultClassDefinition
This class represents the schema definition for a particular class.
Objects of this type are immutablem and any extensions to this class must enforce the immutable nature.
| Fields inherited from class com.novell.admin.ns.ClassDefinition |
auxiliary,
classContainmentNameVec,
className,
container,
effective,
mandatoryAttributeTable,
namingAttributeTable,
nonRemove,
optionalAttributeTable |
| Constructor Summary | |
DefaultClassDefinition(java.lang.String name,
java.lang.String[] classContainmentNames,
AttributeDefinition[] mandatoryAttributes,
AttributeDefinition[] namingAttributes,
AttributeDefinition[] optionalAttributes)
Constructor - Creates a class definition for a class. |
|
DefaultClassDefinition(java.lang.String name,
java.lang.String[] classContainmentNames,
AttributeDefinition[] mandatoryAttributes,
AttributeDefinition[] namingAttributes,
AttributeDefinition[] optionalAttributes,
boolean container,
boolean effective,
boolean nonRemove,
boolean auxiliary)
Constructor - Creates a class definition for a class. |
|
| Method Summary | |
boolean |
canBeContainedBy(java.lang.String parentClass)
Checks to see if this class can be contained by another. |
boolean |
equals(java.lang.Object obj)
Checks to see if this definition is equal to another. |
java.lang.String[] |
getContainmentClasses()
Retrieves the classes that this class can be contained in. |
AttributeDefinition[] |
getMandatoryAttributes()
Retrieves the mandatory attributes of the schema class. |
java.lang.String |
getName()
Retrieves the name of the schema class. |
AttributeDefinition[] |
getNamingAttributes()
Retrieves the naming attributes of the schema class. |
AttributeDefinition[] |
getOptionalAttributes()
Retrieves the optional attributes of the schema class. |
boolean |
isAttributeMandatory(java.lang.String attrName)
Checks to see if a particular attribute is mandatory. |
boolean |
isAttributeOptional(java.lang.String attrName)
Checks to see if a particular attribute is optional. |
boolean |
isAuxiliary()
Tests to see if this is an effective class. |
boolean |
isClassUsingAttribute(java.lang.String attrName)
Checks to see if a particular attribute is being used by this class. |
boolean |
isContainer()
Tests to see if this is an effective class. |
boolean |
isEffective()
Tests to see if this is an effective class. |
boolean |
isNamedBy(java.lang.String attrName)
Checks to see if an attribute is listed as a naming attribute. |
boolean |
isNonRemoveable()
Tests to see if this is an effective class. |
java.lang.String |
toString()
Retrieves the name of the schema class. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public DefaultClassDefinition(java.lang.String name,
java.lang.String[] classContainmentNames,
AttributeDefinition[] mandatoryAttributes,
AttributeDefinition[] namingAttributes,
AttributeDefinition[] optionalAttributes,
boolean container,
boolean effective,
boolean nonRemove,
boolean auxiliary)
name - The name of the schema class.classContainmentNames - Names of classes that this class can be
contained by.mandatoryAttributes - Array of mandatory attribute definitions.
This array may either be 'null' or empty if there are no mandatory attributes.
optionalAttributes - Array of optional attributes definitions.
This array may either be 'null' or empty if there are no optional attributes.
public DefaultClassDefinition(java.lang.String name,
java.lang.String[] classContainmentNames,
AttributeDefinition[] mandatoryAttributes,
AttributeDefinition[] namingAttributes,
AttributeDefinition[] optionalAttributes)
name - The name of the schema class.classContainmentNames - Names of classes that this class can be
contained by.mandatoryAttributes - Array of mandatory attribute definitions.
This array may either be 'null' or empty if there are no mandatory attributes.
optionalAttributes - Array of optional attributes definitions.
This array may either be 'null' or empty if there are no optional attributes.
| Method Detail |
public final java.lang.String getName()
public final AttributeDefinition[] getMandatoryAttributes()
public final AttributeDefinition[] getOptionalAttributes()
public final AttributeDefinition[] getNamingAttributes()
public final boolean isNamedBy(java.lang.String attrName)
attrName - name of the attribute being looked for.public final java.lang.String[] getContainmentClasses()
public final boolean canBeContainedBy(java.lang.String parentClass)
parentClass - name of the class to check.public final boolean isContainer()
public final boolean isEffective()
public final boolean isNonRemoveable()
public final boolean isAuxiliary()
public final boolean isAttributeMandatory(java.lang.String attrName)
attrName - Name of the attribute to look for.public final boolean isAttributeOptional(java.lang.String attrName)
attrName - Name of the attribute to look for.public final boolean isClassUsingAttribute(java.lang.String attrName)
attrName - Name of the attribute to look for.public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj - The other ClassDefinition to compare this to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||