CIM WorkShop is an example of an application that uses enumeration methods to return the names of classes and instances. Once you get a list of object names, you can get the instances of that object, its properties, or other information about the object.
The following enumeration methods return the names of the enumerated class or instance:
enumerateInstanceNames(CIMObjectPath path) — Returns the names of the instances for the specified class.
enumerateClassNames(CIMObjectPath path, boolean deep) — Returns the names of the classes for the class specified in Path. If deep is true, this method returns the names of all classes derived from the enumerated class. If shallow is true, this method returns only the names of the first-level children of the enumerated class.