Package org.apache.any23.validator.rule
Class MissingItemscopeAttributeValueRule
- java.lang.Object
-
- org.apache.any23.validator.rule.MissingItemscopeAttributeValueRule
-
- All Implemented Interfaces:
Rule
public class MissingItemscopeAttributeValueRule extends Object implements Rule
This fixes missing attribute values for the 'itemscope' attribute Typically when such a snippet of XHTML is fed through theRDFa11Extractor, and subsequently to Sesame's SesameRDFaParser, it will result in the following behavior.
This Rule identifies that happening.[Fatal Error] :23:15: Attribute name "itemscope" associated with an element type "div" must be followed by the ' = ' character.
-
-
Constructor Summary
Constructors Constructor Description MissingItemscopeAttributeValueRule()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyOn(DOMDocument document, RuleContext context, ValidationReportBuilder validationReportBuilder)Applies this rule to the given document.StringgetHRName()
-
-
-
Method Detail
-
getHRName
public String getHRName()
-
applyOn
public boolean applyOn(DOMDocument document, RuleContext context, ValidationReportBuilder validationReportBuilder)
Description copied from interface:RuleApplies this rule to the given document.- Specified by:
applyOnin interfaceRule- Parameters:
document- the target document.context- the context used to pass data to an eventualFix.validationReportBuilder- the report builder used to collect rule reporting.- Returns:
trueif al least an issue is detected,falseotherwise.- See Also:
Rule.applyOn(org.apache.any23.validator.DOMDocument, org.apache.any23.validator.RuleContext, org.apache.any23.validator.ValidationReportBuilder)
-
-