|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.novell.admin.ns.SchemaDefinition
|
+--com.novell.admin.ns.DefaultSchemaDefinition
|
+--com.novell.admin.ns.nds.NDSSchemaDefinition
This class models the entire NDS schema.
All schema modifications should be made through this class. Cloned instances of this class can only be used for modeling. The only instance of this class that will result in actual NDS changes must be retrieved from the NDSSchema class.
Schema.getSchemaDefinition()| Fields inherited from class com.novell.admin.ns.SchemaDefinition |
attributes,
classes |
| Constructor Summary | |
NDSSchemaDefinition(NDSSchema schema)
Constructor. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a change listener that can be vetoed. |
java.lang.Object |
clone()
Creates an exact duplicate of this schema definition object. |
ClassDefinition |
getClassDefinition(java.lang.String className)
Returns a specific class definition in expanded form. |
ClassDefinition[] |
getContainmentClasses(java.lang.String className)
Retrieves all containment classes for a specific class type. |
ClassDefinition[] |
getEffectiveClasses(java.lang.String parentClass)
Retrieves the effective classes in expanded form that may be instantiated relative to another class type. |
AttributeDefinition[] |
getMandatoryAttributes(java.lang.String className)
Retrieves all mandatory attributes for a specific class. |
AttributeDefinition[] |
getNamingAttributes(java.lang.String className)
Retrieves all naming attributes for a specific class. |
AttributeDefinition[] |
getOptionalAttributes(java.lang.String className)
Retrieves all optional attributes for a specific class. |
ClassDefinition[] |
getSubClasses(java.lang.String className)
Retrieves all classes that derive from a specific class type. |
ClassDefinition[] |
getSuperClasses(java.lang.String className)
Retrieves all classes from which a specific class inherits. |
NDSClassDefinition |
getUnexpandedClassDefinition(java.lang.String className)
Returns a specific class definition in unexpanded form. |
void |
putAttributeDefinition(AttributeDefinition attributeDef)
Adds a new attribute definition to the schema. |
void |
putClassDefinition(ClassDefinition classDef)
Adds a new class definition to the schema or replaces an existing definition with another. |
void |
refreshSchema()
Forces the entire schema to be re-read from NDS. |
void |
removeAttributeDefinition(java.lang.String attrName)
Removes an attribute definition from the schema. |
void |
removeClassDefinition(java.lang.String className)
Removes a class definition from the schema. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a change listener that can be vetoed. |
| Methods inherited from class com.novell.admin.ns.DefaultSchemaDefinition |
canContain,
equals,
getAttributeDefinition,
getAttributeDefinitions,
getAuxiliaryClassDefinitions,
getClassDefinitions,
getClassesUsingAttribute,
getNumberOfAttributes,
getNumberOfClasses,
isAttributeDefined,
isClassDefined |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public NDSSchemaDefinition(NDSSchema schema)
This constructor should not be used by applications. Applications should get the schema definition from the SchemaService implementation class.
schema - The NDS Schema Service class that created the definition.| Method Detail |
public void refreshSchema()
throws java.beans.PropertyVetoException
public void putAttributeDefinition(AttributeDefinition attributeDef)
throws NDSNamespaceException,
SPIException,
java.beans.PropertyVetoException
If this instance is an original, changes will be committed to NDS.
attributeDef - The new attribute definition.public void putClassDefinition(ClassDefinition classDef)
throws NamespaceException,
SPIException,
java.beans.PropertyVetoException
If this instance is an original, changes will be committed to NDS.
classDef - The new class definition.public void removeAttributeDefinition(java.lang.String attrName)
throws NamespaceException,
SPIException,
java.beans.PropertyVetoException
If this instance is an original, the deletion will be committed to NDS.
attrName - The name of the attribute to be removed.public void removeClassDefinition(java.lang.String className)
throws NamespaceException,
SPIException,
java.beans.PropertyVetoException
If this instance is an original, the deletion will be committed to NDS.
className - The name of the class that is to be removed.public ClassDefinition[] getEffectiveClasses(java.lang.String parentClass)
parentClass - The name of the parent class.public NDSClassDefinition getUnexpandedClassDefinition(java.lang.String className)
throws NamespaceException
className - The name of the class to retrieve.public ClassDefinition getClassDefinition(java.lang.String className)
throws NamespaceException
className - The name of the class to retrieve.public ClassDefinition[] getSuperClasses(java.lang.String className)
throws NamespaceException
The class definitions returned are in unexpanded form.
className - The name of the subclass.public ClassDefinition[] getContainmentClasses(java.lang.String className)
throws NamespaceException
The class definitions returned are in unexpanded form.
className - The name of the class.public ClassDefinition[] getSubClasses(java.lang.String className)
The class definitions returned are in unexpanded form.
className - The name of the super class.public AttributeDefinition[] getNamingAttributes(java.lang.String className)
throws NamespaceException
className - The name of the class.public AttributeDefinition[] getOptionalAttributes(java.lang.String className)
throws NamespaceException
className - The name of the class.public AttributeDefinition[] getMandatoryAttributes(java.lang.String className)
throws NamespaceException
className - The name of the class.public java.lang.Object clone()
One side-effect of cloning is that no changes will ever be committed to NDS. Only the original definition object will cause changes to NDS. This allows for a "sandbox" metaphor.
public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
l - The listener.public void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
l - The listener.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The listener.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||