Constructor: FilteredRuleResultsGroups

OpenAjax.a11y.FilteredRuleResultsGroups

new FilteredRuleResultsGroups(evaluation_result, group_id, title, url, desc)

Constructs a data structure of cache items associated with a rule category Node results can be filtered when a rule result is added to the group

Parameters:
Name Type Description
evaluation_result Object evaluation results used to generate the filtered results
group_id String id used to identify this grouping of rules
title String Title for the group
url String URL to more information on the group
desc String Description of the group
Properties:
Name Type Description
evaluation_result EvaluationResult ruleset and evaluation results used to generate the filtered results
group_id String ID to uniquely identify this group among other grouping objects
filtered_rule_results Array array of filtered rule result objects
filtered_node_results Array array of node results for the group
title String title for the group of rules
url String Optional property to provide a link to more information about a group
desc String Optional property to provide a description of the group
node_results_filtered_out Number number of node results filtered
group_information Object Information on the number and types of rules
has_rules Boolean True if group contains at least one rule
result_summary ResultSummary Summary of the node results for the rule
Source:
  • scripts/filtered_rule_group_results.js, line 7

Methods

<static> addFilteredRuleResultsGroup(filtered_rule_results_group)

Adds a filtered rule result group to this group for aggregating results

Parameters:
Name Type Description
filtered_rule_results_group FilteredRuleResultGroup Filtered rule result group object to add
Source:
  • scripts/filtered_rule_group_results.js, line 258

<static> addRuleResult(group_id, rule_result, filter) → {FilteredRuleResult|object}

Adds a rule result to the grouping aggregation of results if the group id has a match in the group

Parameters:
Name Type Description
group_id String id used for matching the rule result object with a filtered rule result group
rule_result RuleResult Filtered rule result object to aggregate
filter Number Filter for node results (bit mapped mask)
Source:
  • scripts/filtered_rule_group_results.js, line 276
Returns:
Returns a filtered rule result object if rule set was added to this group, otherwise an return object with an added property
Type
FilteredRuleResult | object

<static> getDescription() → {String}

Returns the description of the group, can be empty

Source:
  • scripts/filtered_rule_group_results.js, line 164
Returns:
String describing the group of rules
Type
String

<static> getDocumentObject() → {Object}

Get the document object evaluated

Source:
  • scripts/filtered_rule_group_results.js, line 379
Returns:
Document object
Type
Object

<static> getNumberOfRecommendedRules() → {Number}

Get number of recommended rules in the groups

Source:
  • scripts/filtered_rule_group_results.js, line 194
Returns:
Number of recommended rules
Type
Number

<static> getNumberOfRequiredRules() → {Number}

Get number of required rules in the groups

Source:
  • scripts/filtered_rule_group_results.js, line 179
Returns:
Number of required rules
Type
Number

<static> getNumberOfRules() → {Number}

Returns number of rules in this group

Source:
  • scripts/filtered_rule_group_results.js, line 362
Returns:
Number of rules in this group
Type
Number

<static> getPageInfo() → {PageInfo}

Return information on the web page evaluated

Source:
  • scripts/filtered_rule_group_results.js, line 104
Returns:
PageInfo object
Type
PageInfo

<static> getResultSummary() → {ResultSummary}

Gets numerical summary information about the rule results

Source:
  • scripts/filtered_rule_group_results.js, line 242
Returns:
Returns the ResultSummary object
Type
ResultSummary

<static> getRuleResultsGroupInfo() → {PageInfo}

Return information on the web page evaluated

Source:
  • scripts/filtered_rule_group_results.js, line 118
Returns:
PageInfo object
Type
PageInfo

<static> getRulesetInfo() → {RulesetInfo}

Return ruleset of information

Source:
  • scripts/filtered_rule_group_results.js, line 90
Returns:
RulesetInfo object
Type
RulesetInfo

<static> getTitle() → {String}

Returns the title of the group

Source:
  • scripts/filtered_rule_group_results.js, line 134
Returns:
String representing the title of the group
Type
String

<static> getURL() → {String}

Returns the url of the group, can be empty

Source:
  • scripts/filtered_rule_group_results.js, line 149
Returns:
String of the url to more information about a group
Type
String

<static> hasResults() → {Boolean}

Tests if any of the rules in this group applied to the content in the page

Source:
  • scripts/filtered_rule_group_results.js, line 209
Returns:
True if any of the rule have results, otherwise false
Type
Boolean

<static> hasRules() → {Boolean}

Tests if any of their are any rules in this group

Source:
  • scripts/filtered_rule_group_results.js, line 225
Returns:
True if the group contains at least one rule, otherwise false
Type
Boolean

<static> toCSV(title, header_flag) → {String}

Returns an CSV representation of summary results

Parameters:
Name Type Description
title String Title of the report
header_flag Boolean Optional, set to true if do not want headers for children
Source:
  • scripts/filtered_rule_group_results.js, line 517
Returns:
String representing the CSV for the report
Type
String

<static> toHTML(title) → {String}

Returns an HTML representation of summary results

Parameters:
Name Type Description
title String Title of the report
Source:
  • scripts/filtered_rule_group_results.js, line 481
Returns:
String representing the HTML for the report
Type
String

<static> toJSON(prefix) → {String}

Returns an JSON representation of the rule summary results

Parameters:
Name Type Description
prefix String A prefix string typically spaces
Source:
  • scripts/filtered_rule_group_results.js, line 393
Returns:
JSON string representing the report data
Type
String