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 String
The default value of the parameterprotected String
The description of the parameterprotected String
The label to display for the parameterprotected String
The name of the parameter (must be camelCase)static String
protected boolean
Indicates if the parameter is requiredprotected Parameter.Type
The type of the parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLabel()
getName()
getType()
int
hashCode()
boolean
void
setDefaultValue
(String defaultValue) void
setDescription
(String description) void
void
void
setRequired
(boolean required) void
setType
(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
-