Package com.esri.arcgisruntime.arcade
Class ArcadeConsoleMessageContext
- java.lang.Object
-
- com.esri.arcgisruntime.arcade.ArcadeConsoleMessageContext
-
public final class ArcadeConsoleMessageContext extends java.lang.ObjectProvides information about the execution context where an Arcade console function is invoked.- Since:
- 100.14.0
- See Also:
ArcadeConsoleMessageEvent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getInformation()Gets a dictionary of optional context information where Arcade console function is invoked.ArcadeProfilegetProfile()Gets theArcadeProfilewhich invoked the Arcade console function.
-
-
-
Method Detail
-
getInformation
public java.util.Map<java.lang.String,java.lang.String> getInformation()
Gets a dictionary of optional context information where Arcade console function is invoked.If this is an
ArcadeProfile.ATTRIBUTE_RULE_CONSTRAINTorArcadeProfile.ATTRIBUTE_RULE_CALCULATION, expectgetInformation()to include the following keys:- "ruleName" - The name of the attribute rule which invoked the Arcade console function.
- "tableName" - The name of the
ArcGISFeatureTableevaluating the attribute rule.
- Returns:
- a dictionary of optional context information where Arcade console function is invoked
- Since:
- 100.14.0
-
getProfile
public ArcadeProfile getProfile()
Gets theArcadeProfilewhich invoked the Arcade console function.Arcade console messages may be sent from different execution contexts, for example:
-
ArcadeProfile.ATTRIBUTE_RULE_CONSTRAINTindicates evaluation of an Attribute Rule Constraint. See documentation for Attribute Rule Constraint. -
ArcadeProfile.ATTRIBUTE_RULE_CALCULATIONindicates evaluation of an Attribute Rule Calculation. See documentation for Attribute Rule Calculation. -
ArcadeProfile.LABELINGindicates evaluation of aLabelDefinition.getExpression()orLabelAngle.getAngleExpression(). -
ArcadeProfile.POPUPindicates evaluation of an expression used to populate popup fields. -
ArcadeProfile.RESTRICTEDindicates no optional functionality is allowed and is the preferred default for anArcadeEvaluator. -
ArcadeProfile.UNRESTRICTEDindicates optional functionalities are allowed and is the legacy default.
- Returns:
- the
ArcadeProfilewhich invoked the Arcade console function - Since:
- 100.14.0
-
-
-