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()StringgetComment()List<MdlJsonConfig.SpecElement>getDeny()PatterngetModules()booleanisWhitelist()voidvalidate()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 ConfigValidationExceptionDescription copied from interface:SelfValidatingPerform self-validation.- Specified by:
validatein interfaceSelfValidating- Throws:
ConfigValidationException- an error is detected
-
-