Class UniqueXmlIdDocbookRule
java.lang.Object
org.eclipse.jetty.toolchain.enforcer.rules.UniqueXmlIdDocbookRule
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
,org.apache.maven.enforcer.rule.api.EnforcerRuleBase
public class UniqueXmlIdDocbookRule
extends Object
implements org.apache.maven.enforcer.rule.api.EnforcerRule
Validates that the xml:id namespace is unique across all docbook xml files
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,
List<UniqueXmlIdDocbookRule.XmlId>> private boolean
Simple param. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) boolean
boolean
isResultValid
(org.apache.maven.enforcer.rule.api.EnforcerRule arg0) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.enforcer.rule.api.EnforcerRuleBase
getLevel, setLog
-
Field Details
-
idMap
-
shouldIfail
private boolean shouldIfailSimple param. This rule will fail if the value is true.
-
-
Constructor Details
-
UniqueXmlIdDocbookRule
public UniqueXmlIdDocbookRule()
-
-
Method Details
-
execute
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException - Specified by:
execute
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
- Throws:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
getCacheId
- Specified by:
getCacheId
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheable
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-
isResultValid
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0) - Specified by:
isResultValid
in interfaceorg.apache.maven.enforcer.rule.api.EnforcerRule
-