4.0

Table Of Contents
Find Objects By Relation Type in the Plugged-In Technology
You can find objects by their relationship to other objects in the plugged-in technology by using the
IPluginFactory.findRelation() method. You can also determine whether an object has any dependent child
objects by using the IPluginFactory.hasChildrenInRelation() method.
The IPluginFactory.findRelation() returns all of the dependent child objects that relate to a parent object by
a certain relation type.
The IPluginFactory.hasChildrenInRelation() method returns HasChildrenResult objects to confirm whether
a parent object has any dependent child objects that relate to it by a given relation type. The possible values of
a HasChildrenResult object are yes, no, or unknown. For information about HasChildrenResult objects, see
“HasChildrenResult Enumeration,” on page 228.
You define the relations between the objects in the plugged-in technology in the vso.xml file for the plug-in.
Prerequisites
n
Set up the factory implementation class.
n
Create a public constructor that implements the IPluginFactory interface.
Chapter 7 Developing Plug-Ins
VMware, Inc. 163