2using System.Windows.Controls;
20 private readonly
Control minLengthControl;
21 private readonly
Control maxLengthControl;
22 private readonly
Control regExControl;
65 get => this.min.Value;
68 this.stringParameter.Min = value;
69 this.min.Value = value;
79 get => this.max.Value;
82 this.stringParameter.Max = value;
83 this.max.Value = value;
91 get => base.MinIncluded;
94 this.stringParameter.MinIncluded = value;
95 base.MinIncluded = value;
102 get => base.MaxIncluded;
105 this.stringParameter.MaxIncluded = value;
106 base.MaxIncluded = value;
115 get => this.minLength.Value;
118 this.stringParameter.MinLength = value;
119 this.minLength.Value = value;
129 get => this.maxLength.Value;
132 this.stringParameter.MaxLength = value;
133 this.maxLength.Value = value;
143 get => this.regEx.Value;
146 this.stringParameter.RegEx = value;
147 this.regEx.Value = value;
Contains information about a parameter
virtual object Value
Parameter value
Parameter Parameter
Original parameter object in contract
void Revalidate()
Revalidates the parameter value.
Control Control
Generated control.
Contains information about a string parameter
override object MaxIncludedControl
Control for defining if Maximum value is included or not
override object MinIncludedControl
Control for defining if Minimum value is included or not
override object MaxControl
Control for editing Maximum value
override object MinControl
Control for editing Minimum value
Contains information about a string parameter
override void ContractUpdated(Contract Contract)
Called when the contract has been updated.
override Control MaxLengthControl
Control for editing the Maximum length of the parameter
override bool MinIncluded
override void SetValue(string Value)
Sets the value.
int? MinLength
Minimum length of parameter
override void SetMax(string Value)
Sets the maximum value.
int? MaxLength
Maximum length of parameter
override Control RegExControl
Control for editing a regular expression for validating parameter values.
override Control MinLengthControl
Control for editing the Minimum length of the parameter
StringParameterInfo(Contract Contract, StringParameter Parameter, Control Control, Control MinControl, Control MinIncludedControl, Control MaxControl, Control MaxIncludedControl, Control MinLengthControl, Control MaxLengthControl, Control RegExControl, DesignModel DesignModel, Property< ParameterInfo[]> Parameters)
Contains information about a string parameter
string Max
Maximum value of parameter
override bool MaxIncluded
string RegEx
Regular expression validating parameter input
override void SetMin(string Value)
Sets the minimum value.
string Min
Minimum value of parameter
Generic class for properties
Contains the definition of a contract
Abstract base class for contractual parameters
String-valued contractual parameter
int? MinLength
Optional minimum length of value.
string Max
Optional maximum value.
string RegEx
Optional regular expression to validate the value of the string parameter.
string Min
Optional minimum value.
int? MaxLength
Optional maximum length of value.