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