Class JxValue
java.lang.Object
com.inductiveautomation.perspective.designer.model.JxValue
-
Constructor Details
-
JxValue
-
-
Method Details
-
asJsObject
- Returns:
- an optional containing the raw
JsObject
held by this value, if and only if the original value was a JsObject, otherwise returnsOptional.empty()
-
asInt
-
asDouble
-
asLong
-
asString
- Returns:
- Optional containing
String
if the javascript source value was a string literal or String.
-
isString
public boolean isString()- Returns:
- true if the held value is an instance of
String
-
isNumber
public boolean isNumber()- Returns:
- true if the value is an instance of
Number
. Will not coerce or parse.
-
isJsObject
public boolean isJsObject()- Returns:
- true if the value held is a
JsObject
. If true, the originating value may be a javascript object literal, an instance of a javascript Object, or an array.
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonElement toJson() -
getRawValue
- Returns:
- the raw value contained. May be null if originating JxBrowser value was null or undefined.
-
toString
-