|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.admin.ns.ClassDefinition
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.
Field Summary | |
protected boolean |
auxiliary
|
protected java.util.Vector |
classContainmentNameVec
List of classes that may contain this class. |
protected java.lang.String |
className
Name of the class. |
protected boolean |
container
Flags associtated with this class. |
protected boolean |
effective
|
protected java.util.Hashtable |
mandatoryAttributeTable
Table of mandatory attributes. |
protected java.util.Hashtable |
namingAttributeTable
Table of naming attributes. |
protected boolean |
nonRemove
|
protected java.util.Hashtable |
optionalAttributeTable
Table of optional attributes. |
Constructor Summary | |
ClassDefinition(java.lang.String name,
java.lang.String[] classContainmentNames,
AttributeDefinition[] mandatoryAttributes,
AttributeDefinition[] namingAttributes,
AttributeDefinition[] optionalAttributes)
Constructor - Creates a class definition for a class. |
|
ClassDefinition(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 |
Field Detail |
protected java.util.Hashtable mandatoryAttributeTable
protected java.util.Hashtable optionalAttributeTable
protected java.util.Hashtable namingAttributeTable
protected java.util.Vector classContainmentNameVec
protected java.lang.String className
protected boolean container
protected boolean effective
protected boolean nonRemove
protected boolean auxiliary
Constructor Detail |
public ClassDefinition(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 ClassDefinition(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 java.lang.String getName()
public AttributeDefinition[] getMandatoryAttributes()
public AttributeDefinition[] getOptionalAttributes()
public AttributeDefinition[] getNamingAttributes()
public boolean isNamedBy(java.lang.String attrName)
attrName
- name of the attribute being looked for.public java.lang.String[] getContainmentClasses()
public boolean canBeContainedBy(java.lang.String parentClass)
parentClass
- name of the class to check.public boolean isContainer()
public boolean isEffective()
public boolean isNonRemoveable()
public boolean isAuxiliary()
public boolean isAttributeMandatory(java.lang.String attrName)
attrName
- Name of the attribute to look for.public boolean isAttributeOptional(java.lang.String attrName)
attrName
- Name of the attribute to look for.public 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 |