Class MdlJsonConfig.SpecElement
- java.lang.Object
-
- com.thomasjensen.checkstyle.addons.checks.misc.MdlJsonConfig.SpecElement
-
- All Implemented Interfaces:
SelfValidating
- Enclosing class:
- MdlJsonConfig
public static class MdlJsonConfig.SpecElement extends Object implements SelfValidating
The allow and deny lists in each MDL path specification are composed of elements ofSpecElements.
-
-
Constructor Summary
Constructors Constructor Description SpecElement()No-args constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSpec()MdlContentSpecTypegetType()StringtoString()voidvalidate()Perform self-validation.
-
-
-
Method Detail
-
getType
public MdlContentSpecType getType()
-
getSpec
public String getSpec()
-
validate
public void validate() throws ConfigValidationExceptionDescription copied from interface:SelfValidatingPerform self-validation.- Specified by:
validatein interfaceSelfValidating- Throws:
ConfigValidationException- an error is detected
-
-