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.ImmutableLanguageThis is a base class for XML Java bases rules. Subclasses should overridevisit(XmlNode, RuleContext)and can callsuperto visit children.
-
-
Field Summary
Fields Modifier and Type Field Description static net.sourceforge.pmd.properties.BooleanPropertyCOALESCING_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyEXPAND_ENTITY_REFERENCES_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyIGNORING_COMMENTS_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyIGNORING_ELEMENT_CONTENT_WHITESPACE_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyNAMESPACE_AWARE_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyVALIDATING_DESCRIPTORstatic net.sourceforge.pmd.properties.BooleanPropertyXINCLUDE_AWARE_DESCRIPTOR
-
Constructor Summary
Constructors Modifier Constructor Description AbstractXmlRule()protectedAbstractXmlRule(net.sourceforge.pmd.lang.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)net.sourceforge.pmd.lang.ParserOptionsgetParserOptions()protected voidvisit(XmlNode node, net.sourceforge.pmd.RuleContext ctx)protected voidvisitAll(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, 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, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, 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, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, 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:
getParserOptionsin interfacenet.sourceforge.pmd.Rule- Overrides:
getParserOptionsin 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:
applyin 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)
-
-