Interface LicenseCheckerJsonValue
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LicenseCheckerJsonArray,LicenseCheckerJsonBoolean,LicenseCheckerJsonNull,LicenseCheckerJsonNumber,LicenseCheckerJsonObject,LicenseCheckerJsonString
- All Known Implementing Classes:
LicenseCheckerJreJsonArray,LicenseCheckerJreJsonBoolean,LicenseCheckerJreJsonNull,LicenseCheckerJreJsonNumber,LicenseCheckerJreJsonObject,LicenseCheckerJreJsonString,LicenseCheckerJreJsonValue
Base interface for all LicenseCheckerJson values.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCoerces underlying value to boolean according to the rules of Javascript coercion.doubleasNumber()Coerces the underlying value to a number according to the rules of Javascript coercion.asString()Coerces the underlying value to a String according to the rules of JavaScript coercion.getType()Returns an enumeration representing the fundamental JSON type.booleanjsEquals(LicenseCheckerJsonValue value) Equivalent of Javascript '==' operator comparison between two values.toJson()Returns a serialized JSON string representing this value.toNative()If used in a GWT context (dev or prod mode), converts the object to a native JavaScriptObject suitable for passing to JSNI methods.
-
Method Details
-
asBoolean
boolean asBoolean()Coerces underlying value to boolean according to the rules of Javascript coercion. -
asNumber
double asNumber()Coerces the underlying value to a number according to the rules of Javascript coercion. -
asString
String asString()Coerces the underlying value to a String according to the rules of JavaScript coercion. -
getType
LicenseCheckerJsonType getType()Returns an enumeration representing the fundamental JSON type. -
toJson
String toJson()Returns a serialized JSON string representing this value.- Returns:
-
jsEquals
Equivalent of Javascript '==' operator comparison between two values. -
toNative
Object toNative()If used in a GWT context (dev or prod mode), converts the object to a native JavaScriptObject suitable for passing to JSNI methods. Otherwise, returns the current object in other contexts, such as server-side use.
-