Class Parameter
java.lang.Object
org.craftercms.commons.plugin.model.Parameter
Holds the information for a parameter
- Since:
- 3.1.4
- Author:
- joseross
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe default value of the parameterprotected StringThe description of the parameterprotected StringThe label to display for the parameterprotected StringThe name of the parameter (must be camelCase)static Stringprotected booleanIndicates if the parameter is requiredprotected Parameter.TypeThe type of the parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()getName()getType()inthashCode()booleanvoidsetDefaultValue(String defaultValue) voidsetDescription(String description) voidvoidvoidsetRequired(boolean required) voidsetType(Parameter.Type type) toString()
-
Field Details
-
NAME_REGEX
-
label
The label to display for the parameter -
name
The name of the parameter (must be camelCase) -
description
The description of the parameter -
defaultValue
The default value of the parameter -
type
The type of the parameter -
required
protected boolean requiredIndicates if the parameter is required
-
-
Constructor Details
-
Parameter
public Parameter()
-
-
Method Details
-
getLabel
-
setLabel
-
getName
-
setName
-
getDescription
-
setDescription
-
getDefaultValue
-
setDefaultValue
-
getType
-
setType
-
isRequired
public boolean isRequired() -
setRequired
public void setRequired(boolean required) -
equals
-
hashCode
public int hashCode() -
toString
-