org.apache.any23.validator.rule
Class MetaNameMisuseRule
java.lang.Object
org.apache.any23.validator.rule.MetaNameMisuseRule
- All Implemented Interfaces:
- Rule
public class MetaNameMisuseRule
- extends Object
- implements Rule
Checks whether the meta attribute name is used to contain a property.
- Author:
- Davide Palmisano (palmisano@fbk.eu), Michele Mostarda (mostarda@fbk.eu)
- See Also:
MetaNameMisuseFix
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERRORED_META_NODES
public static final String ERRORED_META_NODES
- See Also:
- Constant Field Values
MetaNameMisuseRule
public MetaNameMisuseRule()
getHRName
public String getHRName()
- Specified by:
getHRName
in interface Rule
- Returns:
- returns the human readable name for this rule.
applyOn
public boolean applyOn(DOMDocument document,
RuleContext context,
ValidationReportBuilder validationReportBuilder)
- Description copied from interface:
Rule
- Applies this rule to the given document.
- Specified by:
applyOn
in interface Rule
- Parameters:
document
- the target document.context
- the context used to pass data to an eventual Fix
.validationReportBuilder
- the report builder used to collect rule reporting.
- Returns:
true
if al least an issue is detected, false
otherwise.
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.