Class MdlJsonConfig.MdlSpec
- java.lang.Object
-
- com.thomasjensen.checkstyle.addons.checks.misc.MdlJsonConfig.MdlSpec
-
- All Implemented Interfaces:
SelfValidating
- Enclosing class:
- MdlJsonConfig
public static class MdlJsonConfig.MdlSpec extends Object implements SelfValidating
An MDL Spec specifies the characteristics of one directory in the module directory layout, for examplesrc/main/java
.
-
-
Constructor Summary
Constructors Constructor Description MdlSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MdlJsonConfig.SpecElement>
getAllow()
String
getComment()
List<MdlJsonConfig.SpecElement>
getDeny()
Pattern
getModules()
boolean
isWhitelist()
void
validate()
Perform self-validation.
-
-
-
Method Detail
-
getComment
@CheckForNull public String getComment()
-
getModules
@CheckForNull public Pattern getModules()
-
isWhitelist
public boolean isWhitelist()
-
getAllow
@CheckForNull public List<MdlJsonConfig.SpecElement> getAllow()
-
getDeny
@CheckForNull public List<MdlJsonConfig.SpecElement> getDeny()
-
validate
public void validate() throws ConfigValidationException
Description copied from interface:SelfValidating
Perform self-validation.- Specified by:
validate
in interfaceSelfValidating
- Throws:
ConfigValidationException
- an error is detected
-
-