Class CodeActionParameterDefinition
Represents a parameter for code action
Inheritance
↳ object
↳ CodeActionParameterDefinition
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class CodeActionParameterDefinition
Constructors
CodeActionParameterDefinition()
Declarationpublic CodeActionParameterDefinition()
Properties
Title
Title of the parameter
Declarationpublic string Title { get; set; }
Type | Description |
---|---|
string |
Name
Name of the parameter
Declarationpublic string Name { get; set; }
Type | Description |
---|---|
string |
Type
Type of the parameter ParameterType
Declaration[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
public ParameterType Type { get; set; }
Type | Description |
---|---|
ParameterType |
IsRequired
If false specifies that the parameter is optional
Declarationpublic bool IsRequired { get; set; }
Type | Description |
---|---|
bool |
DropdownValues
A list of DropdownValue for a ParameterType.Dropdown parameter
Declarationpublic List<DropdownValue> DropdownValues { get; set; }
Type | Description |
---|---|
List<DropdownValue> |
DefaultValue
A default value of the parameter
Declaration[JsonConverter(typeof(DefaultValueJsonConverter))]
public string DefaultValue { get; set; }
Type | Description |
---|---|
string |
Comment
Comment of the parameter
Declarationpublic string Comment { get; set; }
Type | Description |
---|---|
string |
CustomName
Name of the custom implementation to bind. This field is only used for ParameterType.Custom type
Declarationpublic string CustomName { get; set; }
Type | Description |
---|---|
string |
Methods
Clone()
Creates a copy of the parameter definition
Declarationpublic CodeActionParameterDefinition Clone()
Type | Description |
---|---|
CodeActionParameterDefinition | A copy of parameter definition |
CreateTextParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateTextParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateNumberParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateNumberParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateCheckboxParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateCheckboxParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateDropdownParameter(string, Dictionary<string, string>, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateDropdownParameter(string name, Dictionary<string, string> values, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
Dictionary<string, string> | values | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateMultiSelectParameter(string, Dictionary<string, string>, string, bool, List<string>, string)
Declarationpublic static CodeActionParameterDefinition CreateMultiSelectParameter(string name, Dictionary<string, string> values, string title = null, bool isRequired = false, List<string> defaultValue = null, string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
Dictionary<string, string> | values | |
string | title | |
bool | isRequired | |
List<string> | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateDateTimeParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateDateTimeParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateDateParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateDateParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateTimeParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateTimeParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateJsonParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateJsonParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |
CreateTextAreaParameter(string, string, bool, string, string)
Declarationpublic static CodeActionParameterDefinition CreateTextAreaParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Type | Name | Description |
---|---|---|
string | name | |
string | title | |
bool | isRequired | |
string | defaultValue | |
string | comment |
Type | Description |
---|---|
CodeActionParameterDefinition |