The following enumeration methods return the class and instance data:
enumInstances(CIMObjectPath path, boolean deep, boolean localOnly) – Returns the instances for the class specified in Path. If deep is true, this method returns the instances of the specified class and all classes derived from the class. If shallow is true, this method returns the instances of the specified class.
When an instance of a class is created, it inherits the properties of the class it is derived from and all parent classes in the class hierarchy. If localOnly is true, enumInstances returns only non-inherited properties. If localOnly is false, all properties in the class are returned.
enumClass(CIMObjectPath path, boolean deep, boolean localOnly) – Returns the classes (the entire class not just the name of the class) for the class specified in Path. If deep is true, this method returns all classes derived from the enumerated class. If shallow is true, this method returns only the first-level children of the enumerated class.
When a class is created, it inherits the methods and properties of the class it is derived from and all parent classes in the class hierarchy. If localOnly is true, this method returns only non-inherited properties and methods. If localOnly is false, all properties in the class are returned.