com.deque.axe.android.AxeRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axe-devtools-android-core Show documentation
Show all versions of axe-devtools-android-core Show documentation
The Axe Devtools Android Core Library
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