2using System.Threading.Tasks;
25 private readonly
int nrDefaultValues;
37 List<ReportStringAttribute> DefaultValues =
new List<ReportStringAttribute>();
39 foreach (XmlNode N
in Xml.ChildNodes)
41 if (N is XmlElement E && E.LocalName ==
"DefaultValue")
45 this.defaultValue = DefaultValues.ToArray();
46 this.nrDefaultValues = this.defaultValue.Length;
58 ushort? MinCount = this.minCount.IsEmpty ? null : (ushort?)await this.minCount.Evaluate(
Variables);
59 ushort? MaxCount = this.maxCount.IsEmpty ? null : (ushort?)await this.maxCount.Evaluate(
Variables);
63 if (MinCount.HasValue || MaxCount.HasValue)
64 Validation =
new ListRangeValidation(Validation, MinCount ?? 0, MaxCount ?? ushort.MaxValue);
87 string[] DefaultValue =
new string[this.nrDefaultValues];
90 for (i = 0; i < this.nrDefaultValues; i++)
91 DefaultValue[i] = await this.defaultValue[i].Evaluate(
Variables);
108 string Name = await this.
GetName(Variables);
109 bool Required = await this.
IsRequired(Variables);
110 ushort? MinCount = this.minCount.IsEmpty ? null : (ushort?)await this.minCount.Evaluate(
Variables);
111 ushort? MaxCount = this.maxCount.IsEmpty ? null : (ushort?)await this.maxCount.Evaluate(
Variables);
125 if (s is
null || s.Length == 0)
136 foreach (
string Jid
in s)
142 if (MinCount.HasValue && s.Length < MinCount.Value)
144 else if (MaxCount.HasValue && s.Length > MaxCount.Value)
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Class managing a page in a data form layout.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
static readonly Regex BareJidRegEx
Regular expression for Bare JIDs
Represents a multiple JIDs-valued parameter.
override async Task SetParameter(DataForm Parameters, Language Language, bool OnlySetChanged, Variables Variables, SetEditableFormResult Result)
Sets the parameters of the object, based on contents in the data form.
override async Task PopulateForm(DataForm Parameters, Language Language, Variables Variables)
Populates a data form with parameters for the object.
JidsParameter(XmlElement Xml)
Represents a multiple JIDs-valued parameter.
string Page
Parameter page.
string Description
Parameter description.
string Label
Parameter label.
string Name
Parameter name.
bool Required
If parameter is required.
Attributes of a report parameter with options.
KeyValuePair< string, string >[] Options
Available options
bool RestrictToOptions
If only values defined in options are valid values.
Represents a parameter with possible options on a command.
async Task< ReportParameterWithOptionsAttributes > GetReportParameterWithOptionsAttributes(Variables Variables)
Evaluates the attributes of the report parameter with options.
Task< string > GetName(Variables Variables)
Name of the parameter.
Task< bool > IsRequired(Variables Variables)
If parameter is required.
Report node based on the contents of a report file.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...