4using System.Threading.Tasks;
5using System.Windows.Controls;
56 get => this.label.Value;
57 set => this.label.Value = value;
65 get => this.labelAsMarkdown.Value;
77 this.labelAsMarkdown.Value = value;
78 this.label.Value = value.ToSimpleXAML(this.Contract, Language).Result;
87 get => this.contractId.Value;
90 if (
string.IsNullOrEmpty(value))
91 this.contractId.Value =
string.Empty;
93 throw new Exception(
"Invalid contract reference.");
97 this.contractId.Value = value;
107 get => this.localName.Value;
108 set => this.localName.Value = value;
116 get => this.@
namespace.Value;
117 set => this.@namespace.Value = value;
125 get => this.templateId.Value;
126 set => this.templateId.Value = value;
134 get => this.provider.Value;
135 set => this.provider.Value = value;
143 get => this.creatorRole.Value;
144 set => this.creatorRole.Value = value;
152 get => this.required.Value;
153 set => this.required.Value = value;
159 this.ContractId =
Value;
168 return Task.CompletedTask;
string Language
Currently selected language.
void RemoveContractReferenceParameter(ContractReferenceParameterInfo Parameter)
Removes a contract reference parameter from the design
Contains information about a parameter
virtual object Value
Parameter value
Control Control
Generated control.
Contains information about a contract reference parameter
ContractReferenceParameterInfo(Contract Contract, ContractReferenceParameter Parameter, Control Control, DesignModel DesignModel, IProperty Parameters)
Contains information about a contract reference parameter
string Provider
Provider of contract.
override void SetValue(string Value)
Sets the value.
string LabelAsMarkdown
Label, as Markdown
override Task ExecuteRemoveParameter()
Removes the parameter.
string TemplateId
Contract ID of template used to create contract.
string Namespace
Namespace of root of machine-readable section.
string LocalName
Local name of root of machine-readable section.
bool Required
If property is required.
string CreatorRole
Role of creator of current contract, in referenced contract.
string ContractId
ID of referenced contract.
Generic class for properties
Contains the definition of a contract
string DefaultLanguage
Default language for contract.
Contract-reference parameter
override void SetValue(object Value)
Sets the parameter value.
CaseInsensitiveString Value
The value of the parameter, containing the ID of the contract that is being referenced.
Label[] Labels
Human-readable label to be shown in stead of a reference, in contract text, in different languages.
string LocalName
Restriction on the local name of the machine-readable part of the referenced contract.
Task< string > ToMarkdown(string Language, Contract Contract)
Creates a human-readable Markdown document for the contract.
Abstract base class for contractual parameters
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
static readonly Regex BareJidRegEx
Regular expression for Bare JIDs
Interface for properties.
MarkdownType
Type of Markdown to generate