Class ModulePropertyDetails
java.lang.Object
com.puppycrawl.tools.checkstyle.meta.ModulePropertyDetails
Simple POJO class module's property details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Default value of property.private String
Description of property.private String
Name of property.private String
Type of property.private String
This property is java type that plugins can use to validate user input, it is used when 'type' field is "String". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet default value of property.Get description of property.getName()
Get name of property.getType()
Get type of property.Get validation type of property.void
setDefaultValue
(String defaultValue) Set default value of property.void
setDescription
(String description) Set description of property.void
Set name of property.void
Set property type.void
setValidationType
(String validationType) Set validation type of property.
-
Field Details
-
name
Name of property. -
type
Type of property. -
defaultValue
Default value of property. -
validationType
This property is java type that plugins can use to validate user input, it is used when 'type' field is "String". It is used for special cases such as regexp and tokenSet. -
description
Description of property.
-
-
Constructor Details
-
ModulePropertyDetails
public ModulePropertyDetails()
-
-
Method Details
-
getName
Get name of property.- Returns:
- name of property
-
setName
Set name of property.- Parameters:
name
- name of property
-
getType
Get type of property.- Returns:
- property type
-
setType
Set property type.- Parameters:
type
- property type
-
getDefaultValue
Get default value of property.- Returns:
- default value of property
-
setDefaultValue
Set default value of property.- Parameters:
defaultValue
- default value of property
-
getValidationType
Get validation type of property.- Returns:
- validation type of property
-
setValidationType
Set validation type of property.- Parameters:
validationType
- validation type of property
-
getDescription
Get description of property.- Returns:
- property description
-
setDescription
Set description of property.- Parameters:
description
- property description
-