public class CMAUiExtensionParameter
extends java.lang.Object
This class will be used to represent a UI extension parameter.
| Constructor and Description |
|---|
CMAUiExtensionParameter() |
| Modifier and Type | Method and Description |
|---|---|
CMAUiExtensionParameter |
addLabel(java.lang.String key,
java.lang.String value)
Add a label.
|
CMAUiExtensionParameter |
addOption(java.lang.String value)
Add an option, used for rendering a form.
|
java.lang.String |
getDefaultValue() |
java.lang.String |
getDescription() |
java.lang.String |
getId() |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getLabels() |
java.lang.String |
getName() |
java.util.List<java.lang.Object> |
getOptions() |
CMAUiExtensionParameterType |
getType() |
boolean |
isRequired() |
CMAUiExtensionParameter |
setDefaultValue(java.lang.String defaultValue)
Set the default value of this parameter.
|
CMAUiExtensionParameter |
setDescription(java.lang.String description)
Set the description of this parameter.
|
CMAUiExtensionParameter |
setId(java.lang.String id)
Sets the id for this parameter.
|
CMAUiExtensionParameter |
setName(java.lang.String name)
Sets the name for this parameter.
|
CMAUiExtensionParameter |
setRequired(boolean required)
Sets the
required attribute value. |
CMAUiExtensionParameter |
setType(CMAUiExtensionParameterType type)
Sets the type for this parameter.
|
java.lang.String |
toString() |
public java.lang.String getId()
id attribute of this parameter.public CMAUiExtensionParameter setId(java.lang.String id)
id - the id to be setCMAUiExtensionParameter instancepublic java.lang.String getName()
name attribute of this parameter.public CMAUiExtensionParameter setName(java.lang.String name)
name - the name to be setCMAUiExtensionParameter instancepublic java.lang.String getDescription()
name description of this parameter.public CMAUiExtensionParameter setDescription(java.lang.String description)
description - the description of this parameter.CMAUiExtensionParameter instance.public CMAUiExtensionParameterType getType()
type attribute of this parameter.public CMAUiExtensionParameter setType(CMAUiExtensionParameterType type)
type - the type to be set.CMAUiExtensionParameter instance.public boolean isRequired()
required attribute of this parameter.public CMAUiExtensionParameter setRequired(boolean required)
required attribute value.required - boolean indicating whether or not this parameter is required.CMAUiExtensionParameter instance.public java.lang.String getDefaultValue()
defaultValue description of this parameter.public CMAUiExtensionParameter setDefaultValue(java.lang.String defaultValue)
defaultValue - the default value of this parameter.CMAUiExtensionParameter instance.public java.util.List<java.lang.Object> getOptions()
public CMAUiExtensionParameter addOption(java.lang.String value)
value - the value of the option.CMAUiExtensionParameter instance.public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getLabels()
public CMAUiExtensionParameter addLabel(java.lang.String key, java.lang.String value)
key - the key of the label.value - the value of the label.CMAUiExtensionParameter instance.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Contentful, GmbH.. All Rights Reserved.