Getting the Ruleset

Prerequisites

You have got the project instance that contains the ruleset which you want to open.

Procedure

Enter the name of the ruleset that you want to open.

            String rulesetName = "Sample Ruleset";
IRuleset ruleset = project.getRuleset(rulesetName);
         

Result

You get the desired ruleset.