|
||||||||||
| 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
This is the base class that represents an in-memory model of an entire schema definition.
| Fields inherited from class com.novell.admin.ns.SchemaDefinition |
attributes,
classes |
| Constructor Summary | |
DefaultSchemaDefinition()
Constructor. |
|
| Method Summary | |
boolean |
canContain(java.lang.String parentClass,
java.lang.String childClass)
Tests if objects of one class type may contain objects of another class type. |
boolean |
equals(java.lang.Object obj)
Checks this object against another SchemaDefinition object for equality. |
AttributeDefinition |
getAttributeDefinition(java.lang.String attrName)
Returns the AttributeDefinition object for a given attribute name. |
AttributeDefinition[] |
getAttributeDefinitions()
Returns an array containing all attribute definitions. |
ClassDefinition[] |
getAuxiliaryClassDefinitions()
|
ClassDefinition |
getClassDefinition(java.lang.String className)
Returns the ClassDefinition object for a given class name. |
ClassDefinition[] |
getClassDefinitions()
|
ClassDefinition[] |
getClassesUsingAttribute(java.lang.String attrName)
Returns an array of class definitions that use a particular attribute. |
abstract ClassDefinition[] |
getContainmentClasses(java.lang.String className)
Returns all containment classes for a specific class type. |
ClassDefinition[] |
getEffectiveClasses(java.lang.String parentClass)
Returns the effective classes that may be instantiated relative to another class type. |
int |
getNumberOfAttributes()
Returns the number of attribute definitions in the schema definition. |
int |
getNumberOfClasses()
Returns the number of class definitions in the schema definition. |
boolean |
isAttributeDefined(java.lang.String attrName)
Determines if an attribute is defined. |
boolean |
isClassDefined(java.lang.String className)
Determines if a given class is defined. |
| Methods inherited from class com.novell.admin.ns.SchemaDefinition |
clone |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DefaultSchemaDefinition()
| Method Detail |
public final int getNumberOfAttributes()
public final int getNumberOfClasses()
public ClassDefinition[] getAuxiliaryClassDefinitions()
public ClassDefinition[] getClassDefinitions()
public AttributeDefinition[] getAttributeDefinitions()
public ClassDefinition[] getClassesUsingAttribute(java.lang.String attrName)
attrName - The name of the attribute used.public AttributeDefinition getAttributeDefinition(java.lang.String attrName)
throws NamespaceException
attrName - The name of the attribute.public boolean canContain(java.lang.String parentClass,
java.lang.String childClass)
parentClass - The name of the parent class type.childClass - The name of the child class type.public abstract ClassDefinition[] getContainmentClasses(java.lang.String className)
throws NamespaceException
className - The name of the class to get containment classes for.public ClassDefinition[] getEffectiveClasses(java.lang.String parentClass)
parentClass - The name of the parent class.public ClassDefinition getClassDefinition(java.lang.String className)
throws NamespaceException
className - The name of the class.public final boolean isClassDefined(java.lang.String className)
className - The name of the class to check.public final boolean isAttributeDefined(java.lang.String attrName)
attrName - The name of the attribute to check.public boolean equals(java.lang.Object obj)
obj - The SchemaDefinition object to be checked against.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||