Creates a RuleSet. The RuleSet can store multiple rules concerning namespaces.
The RuleSet is an interface used to create, update and delete rulesets.
Node | Description |
---|
Method | Description |
---|---|
sap.ui.support.RuleSet.addRule |
Adds rules to RuleSet. |
sap.ui.support.RuleSet.clearAllRuleSets |
Clears all rulesets inside the RuleSet. |
sap.ui.support.RuleSet.getRules |
Gets all rules from the RuleSet. |
sap.ui.support.RuleSet.loadSelectionOfRules |
Loads the previous selection of the user - which rules are selected to be run by the Rule Analyzer. The method applies the settings to the currently loaded rules. |
sap.ui.support.RuleSet.removeRule |
Remove rule from RuleSet. |
sap.ui.support.RuleSet.storeSelectionOfRules |
Stores which rules are selected to be run by the analyzer on the next check |
sap.ui.support.RuleSet.updateRule |
Updates rules from the RuleSet. |
Adds rules to RuleSet.
Param | Type | DefaultValue | Description |
---|---|---|---|
oSettings | object |
Settings object with rule information |
Clears all rulesets inside the RuleSet.
Param | Type | DefaultValue | Description |
---|
Gets all rules from the RuleSet.
Param | Type | DefaultValue | Description |
---|
Loads the previous selection of the user - which rules are selected to be run by the Rule Analyzer. The method applies the settings to the currently loaded rules.
Param | Type | DefaultValue | Description |
---|---|---|---|
aLibraries | Object[] |
The current loaded libraries and their rules |
Remove rule from RuleSet.
Param | Type | DefaultValue | Description |
---|---|---|---|
oRule | object |
Rule object that will be removed |
Stores which rules are selected to be run by the analyzer on the next check
Param | Type | DefaultValue | Description |
---|---|---|---|
aLibraries | Object[] |
The data for the libraries and their rules |
Updates rules from the RuleSet.
Param | Type | DefaultValue | Description |
---|---|---|---|
sRuleId | string |
Rule ID |
|
ORuleSettings | object |
Rule settings |