ArcGIS Runtime SDK for iOS: AGSArcadeExpression.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSArcadeExpression.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSObject.h>
29 #import <ArcGIS/AGSJSONSerializable.h>
30 
31 
32 
36 typedef NS_ENUM(NSInteger, AGSArcadeExpressionReturnType) {
40 };
41 
51 
52 #pragma mark -
53 #pragma mark initializers
54 
55 
56 
64 - (instancetype)initWithExpression:(NSString *)expression;
65 
73 + (instancetype)arcadeExpressionWithExpression:(NSString *)expression;
74 
83 - (instancetype)initWithExpression:(NSString *)expression
84  title:(NSString *)title
85  name:(NSString *)name;
86 
95 + (instancetype)arcadeExpressionWithExpression:(NSString *)expression
96  title:(NSString *)title
97  name:(NSString *)name;
98 
106 - (instancetype)initWithExpression:(NSString *)expression
107  title:(NSString *)title
108  name:(NSString *)name
109  returnType:(AGSArcadeExpressionReturnType)returnType;
110 
118 + (instancetype)arcadeExpressionWithExpression:(NSString *)expression
119  title:(NSString *)title
120  name:(NSString *)name
121  returnType:(AGSArcadeExpressionReturnType)returnType;
122 
123 #pragma mark -
124 #pragma mark properties
125 
129 @property (nonatomic, copy, readonly) NSString *expression;
130 
136 @property (nonatomic, copy, readonly) NSString *name;
137 
146 @property (nonatomic, assign, readonly) AGSArcadeExpressionReturnType returnType;
147 
153 @property (nonatomic, copy, readonly) NSString *title;
154 
155 #pragma mark -
156 #pragma mark methods
157 
164 - (BOOL)isEqualToArcadeExpression:(AGSArcadeExpression *)other;
165 @end
166 
167 
AGSArcadeExpressionReturnType
Definition: AGSArcadeExpression.h:36
@ AGSArcadeExpressionReturnTypeNumber
Definition: AGSArcadeExpression.h:38
@ AGSArcadeExpressionReturnTypeString
Definition: AGSArcadeExpression.h:39
@ AGSArcadeExpressionReturnTypeAutomatic
Definition: AGSArcadeExpression.h:37
An Arcade expression object, containing an expression, a name, a return type and a title.
Definition: AGSArcadeExpression.h:50
NSString * name
Definition: AGSArcadeExpression.h:136
NSString * expression
Definition: AGSArcadeExpression.h:129
AGSArcadeExpressionReturnType returnType
Definition: AGSArcadeExpression.h:146
NSString * title
Definition: AGSArcadeExpression.h:153
Definition: AGSObject.h:28
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38