All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deque.axe.android.AxeRule Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.deque.axe.android;

import com.deque.axe.android.conf.RuleConf;
import com.deque.axe.android.constants.AxeStandard;

/**
 * Main AxeRule class.
 */
public abstract class AxeRule {

  public final String id;

  public final int impact;

  public final @AxeStandard String standard;

  public final String summary;

  public final boolean experimental;

  public AxeRule(final RuleConf ruleConf) {
    this(ruleConf.standard, ruleConf.impact, ruleConf.summary, ruleConf.experimental);
  }

  /**
   * Construct an AxeRule.
   * @param standard The Standard the rule applies to.
   * @param impact How high an impact the rule has on users.
   * @param summary A simple description of what the rule is looking for.
   */
  @Deprecated
  private AxeRule(@AxeStandard String standard, int impact, final String summary, boolean experimental) {
    this.id = getClass().getSimpleName();
    this.impact = impact;
    this.summary = summary;
    this.standard = standard;
    this.experimental = experimental;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy