Advanced Customization > Services and Infrastructure Customization > Import Export Framework > Navigating Through an Object’s Structure with ObjectSet Application > Examples > All Objects in the Cabinet and Folder (Including Subfolders)
  
All Objects in the Cabinet and Folder (Including Subfolders)
genId[0] = genId[ 1] = “folderContent”;
genParams[ 0] = “wt.folder.Cabinet:1865”;
genParams[ 1] = “wt.folder.Subfolder:5674”;
WTHashSet objects = (WTHashSet) ObjectSetHelper.
computeObjectSetForGivenGeneratorsAndFilters( genIds,
genParams,
new String [0 ],
new String [0 ]);
* 
Warning, if there are no filters, you can pass new String[0] for filterIds and filterParams (Don’t pass null, an exception is thrown)
To get String constants for GUI, see <Windchill>\DevModules\IXLoad\src\wt\ixb\objectset\objectSetResource.java.