Class MdlJsonConfig
- java.lang.Object
-
- com.thomasjensen.checkstyle.addons.checks.misc.MdlJsonConfig
-
- All Implemented Interfaces:
SelfValidating
public class MdlJsonConfig extends Object implements SelfValidating
Deserialized version of the directories.json.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MdlJsonConfig.MdlSpec
An MDL Spec specifies the characteristics of one directory in the module directory layout, for examplesrc/main/java
.static class
MdlJsonConfig.Settings
Encapsulates the general settings which are supported in a directories.json.static class
MdlJsonConfig.SpecElement
The allow and deny lists in each MDL path specification are composed of elements ofSpecElement
s.
-
Constructor Summary
Constructors Constructor Description MdlJsonConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
MdlJsonConfig.Settings
getSettings()
Map<String,MdlJsonConfig.MdlSpec>
getStructure()
void
validate()
Perform self-validation.
-
-
-
Method Detail
-
getComment
@CheckForNull public String getComment()
-
getSettings
@Nonnull public MdlJsonConfig.Settings getSettings()
-
getStructure
@Nonnull public Map<String,MdlJsonConfig.MdlSpec> getStructure()
-
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
-
-