Class AbstractXmlRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.xml.rule.AbstractXmlRule
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.rule.ImmutableLanguage
,net.sourceforge.pmd.properties.PropertySource
,net.sourceforge.pmd.Rule
- Direct Known Subclasses:
AbstractDomXmlRule
,AbstractWsdlRule
public class AbstractXmlRule extends net.sourceforge.pmd.lang.rule.AbstractRule implements net.sourceforge.pmd.lang.rule.ImmutableLanguage
This is a base class for XML Java bases rules. Subclasses should overridevisit(XmlNode, RuleContext)
and can callsuper
to visit children.
-
-
Field Summary
Fields Modifier and Type Field Description static net.sourceforge.pmd.properties.BooleanProperty
COALESCING_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
EXPAND_ENTITY_REFERENCES_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
IGNORING_COMMENTS_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
NAMESPACE_AWARE_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
VALIDATING_DESCRIPTOR
static net.sourceforge.pmd.properties.BooleanProperty
XINCLUDE_AWARE_DESCRIPTOR
-
Constructor Summary
Constructors Modifier Constructor Description AbstractXmlRule()
protected
AbstractXmlRule(net.sourceforge.pmd.lang.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
net.sourceforge.pmd.lang.ParserOptions
getParserOptions()
protected void
visit(XmlNode node, net.sourceforge.pmd.RuleContext ctx)
protected void
visitAll(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getPriority, getPropertySourceType, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
-
-
-
Field Detail
-
COALESCING_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty COALESCING_DESCRIPTOR
-
EXPAND_ENTITY_REFERENCES_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty EXPAND_ENTITY_REFERENCES_DESCRIPTOR
-
IGNORING_COMMENTS_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty IGNORING_COMMENTS_DESCRIPTOR
-
IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty IGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTOR
-
NAMESPACE_AWARE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty NAMESPACE_AWARE_DESCRIPTOR
-
VALIDATING_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty VALIDATING_DESCRIPTOR
-
XINCLUDE_AWARE_DESCRIPTOR
public static final net.sourceforge.pmd.properties.BooleanProperty XINCLUDE_AWARE_DESCRIPTOR
-
-
Method Detail
-
getParserOptions
public net.sourceforge.pmd.lang.ParserOptions getParserOptions()
- Specified by:
getParserOptions
in interfacenet.sourceforge.pmd.Rule
- Overrides:
getParserOptions
in classnet.sourceforge.pmd.lang.rule.AbstractRule
-
apply
public void apply(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
- Specified by:
apply
in interfacenet.sourceforge.pmd.Rule
-
visitAll
protected void visitAll(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
-
visit
protected void visit(XmlNode node, net.sourceforge.pmd.RuleContext ctx)
-
-