Table of Contents

TXDataParamDef Class

Represents a parameter of a service operation.

Syntax

Unit: XData.Model.Classes

TXDataParamDef = class(TXDataModelObject);

Methods

Name Description
Index Returns the position of the parameter in the parameter list of its service operation.

Properties

Name Description
BindingMode Gets or sets from which part of the request the parameter value is read.
DefaultValue Gets or sets the value used for the parameter when the client does not provide it.
DocRequired Gets or sets whether the parameter is flagged as required in the generated API documentation.
HasDefaultValue Indicates whether the parameter has a default value defined in DefaultValue.
Input Indicates whether the parameter value is received from the client in the request.
Name Gets or sets the name of the parameter.
Output Indicates whether the parameter value is sent back to the client in the response.
ParamType Gets or sets the type of the parameter.
Parent Gets the service operation the parameter belongs to.
RttiType Gets or sets the Delphi RTTI type of the parameter.
TypeNameRef Gets or sets the name of a non-scalar parameter type, used when the model is written to or read from JSON.
TypeRef Gets or sets the name of a scalar parameter type, used when the model is written to or read from JSON.
UrlConverter Gets the converter used to convert values of the parameter to and from literals in URLs.