Table of Contents

TXDataRouteSegment Class

Represents one segment of the route of a service operation.

Remarks

A segment is either a literal text, or a parameter written between braces, as {id} in the route customers/{id}/orders.

Syntax

Unit: XData.Model.Classes

TXDataRouteSegment = class(TObject);

Constructors

Name Description
Create Creates a route segment from its text.

Properties

Name Description
IsParam Indicates whether the segment is a parameter.
ParamIndex Gets or sets the index, among the path parameters of the service operation, of the parameter bound to the segment.
ParamName Gets or sets the name of the parameter, for parameter segments.
Value Gets or sets the text of the segment, as written in the route.