Class UniqueXmlIdDocbookRule
- java.lang.Object
-
- org.eclipse.jetty.toolchain.enforcer.rules.UniqueXmlIdDocbookRule
-
- All Implemented Interfaces:
org.apache.maven.enforcer.rule.api.EnforcerRule
public class UniqueXmlIdDocbookRule extends java.lang.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 Modifier and Type Class Description private class
UniqueXmlIdDocbookRule.XmlId
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.util.List<UniqueXmlIdDocbookRule.XmlId>>
idMap
private boolean
shouldIfail
Simple param.
-
Constructor Summary
Constructors Constructor Description UniqueXmlIdDocbookRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
java.lang.String
getCacheId()
boolean
isCacheable()
boolean
isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule arg0)
-
-
-
Field Detail
-
idMap
private java.util.Map<java.lang.String,java.util.List<UniqueXmlIdDocbookRule.XmlId>> idMap
-
shouldIfail
private boolean shouldIfail
Simple param. This rule will fail if the value is true.
-
-
Method Detail
-
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
public java.lang.String 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
-
-