public class Parameter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Parameter.Type
Possible types for the parameters
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultValue
The default value of the parameter
|
protected String |
description
The description of the parameter
|
protected String |
label
The label to display for the parameter
|
protected String |
name
The name of the parameter (must be camelCase)
|
static String |
NAME_REGEX |
protected boolean |
required
Indicates if the parameter is required
|
protected Parameter.Type |
type
The type of the parameter
|
| Constructor and Description |
|---|
Parameter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDefaultValue() |
String |
getDescription() |
String |
getLabel() |
String |
getName() |
Parameter.Type |
getType() |
int |
hashCode() |
boolean |
isRequired() |
void |
setDefaultValue(String defaultValue) |
void |
setDescription(String description) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setRequired(boolean required) |
void |
setType(Parameter.Type type) |
String |
toString() |
public static String NAME_REGEX
protected String label
protected String name
protected String description
protected String defaultValue
protected Parameter.Type type
protected boolean required
public String getLabel()
public void setLabel(String label)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public Parameter.Type getType()
public void setType(Parameter.Type type)
public boolean isRequired()
public void setRequired(boolean required)
Copyright © 2021 CrafterCMS. All rights reserved.