Class ModulePropertyDetails
java.lang.Object
com.puppycrawl.tools.checkstyle.meta.ModulePropertyDetails
Simple POJO class module's property details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDefault value of property.private StringDescription of property.private StringName of property.private StringType of property.private StringThis 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.voidsetDefaultValue(String defaultValue) Set default value of property.voidsetDescription(String description) Set description of property.voidSet name of property.voidSet property type.voidsetValidationType(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()No-argument constructor. -
ModulePropertyDetails
public ModulePropertyDetails(String name, String type, String defaultValue, String validationType, String description) All-argument constructor.- Parameters:
name- name.type- type.defaultValue- default value.validationType- validation type.description- description.
-
-
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
-