Package | Description |
---|---|
org.apache.any23.validator | |
org.apache.any23.validator.rule |
Modifier and Type | Method and Description |
---|---|
Rule |
ValidationReport.RuleError.getOrigin() |
Modifier and Type | Method and Description |
---|---|
List<Class<? extends Rule>> |
DefaultValidator.getAllRules() |
List<Class<? extends Rule>> |
Validator.getAllRules()
Returns all the registered rules.
|
Modifier and Type | Method and Description |
---|---|
void |
Fix.execute(Rule rule,
RuleContext context,
DOMDocument document)
Executes this fix over a document.
|
void |
DefaultValidationReportBuilder.reportRuleError(Rule r,
Exception e,
String msg) |
void |
ValidationReportBuilder.reportRuleError(Rule r,
Exception e,
String msg)
Reports an error occurred while executing a
Rule . |
void |
DefaultValidationReportBuilder.traceRuleActivation(Rule r) |
void |
ValidationReportBuilder.traceRuleActivation(Rule r)
Traces that a rule has been applied.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultValidator.addRule(Class<? extends Rule> rule) |
void |
Validator.addRule(Class<? extends Rule> rule)
Allows to register a new rule to this validator
|
void |
DefaultValidator.addRule(Class<? extends Rule> rule,
Class<? extends Fix> fix) |
void |
Validator.addRule(Class<? extends Rule> rule,
Class<? extends Fix> fix)
Allows to register a new rule to this validator and associating it to a fix.
|
List<Class<? extends Fix>> |
DefaultValidator.getFixes(Class<? extends Rule> rule) |
List<Class<? extends Fix>> |
Validator.getFixes(Class<? extends Rule> rule)
Returns all fixes registered for the give rule.
|
void |
DefaultValidator.removeRule(Class<? extends Rule> rule) |
void |
Validator.removeRule(Class<? extends Rule> rule)
Allows to remove a rule from the validator and all the related
Fix es. |
Constructor and Description |
---|
ValidationReport.RuleActivation(Rule r) |
ValidationReport.RuleError(Rule r,
Exception e,
String msg) |
Modifier and Type | Class and Description |
---|---|
class |
AboutNotURIRule
This rule is able to detect whether an about value is a valid URL
or otherwise is a valid relative URL.
|
class |
MetaNameMisuseRule
Checks whether the meta attribute name is used to contain a property.
|
class |
MissingOpenGraphNamespaceRule
This rule detects the issue of missing Open Graph namespace.
|
Modifier and Type | Method and Description |
---|---|
void |
MetaNameMisuseFix.execute(Rule rule,
RuleContext context,
DOMDocument document) |
void |
OpenGraphNamespaceFix.execute(Rule rule,
RuleContext context,
DOMDocument document) |
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.