Class LicenseCheckerJreJsonArray
java.lang.Object
com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJreJsonValue
com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJreJsonArray
- All Implemented Interfaces:
LicenseCheckerJsonArray,LicenseCheckerJsonValue,Serializable
public class LicenseCheckerJreJsonArray
extends LicenseCheckerJreJsonValue
implements LicenseCheckerJsonArray
Server-side implementation of LicenseCheckerJsonArray.
- See Also:
-
Constructor Summary
Constructors -
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.get(int index) Return the ith element of the array.getArray(int index) Return the ith element of the array (uncoerced) as a LicenseCheckerJsonArray.booleangetBoolean(int index) Return the ith element of the array (uncoerced) as a boolean.doublegetNumber(int index) Return the ith element of the array (uncoerced) as a number.getObject(int index) Return the ith element of the array (uncoerced) as a LicenseCheckerJsonObject If the type is not an object,, this can result in runtime errors.getString(int index) Return the ith element of the array (uncoerced) as a String.getType()Returns an enumeration representing the fundamental JSON type.booleanjsEquals(LicenseCheckerJsonValue value) Equivalent of Javascript '==' operator comparison between two values.intlength()Length of the array.voidremove(int index) Remove an element of the array at a particular index.voidset(int index, boolean bool) Set the value at index to be a boolean value.voidset(int index, double number) Set the value at index to be a number value.voidset(int index, LicenseCheckerJsonValue value) Set the value at index to be a given value.voidSet the value at index to be a String value.toJson()Returns a serialized JSON string representing this value.voidtraverse(com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJsonVisitor visitor, com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJsonContext ctx) Methods inherited from class com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJreJsonValue
parseJson, toNativeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.pro.licensechecker.json.LicenseCheckerJsonValue
toNative
-
Constructor Details
-
LicenseCheckerJreJsonArray
-
-
Method Details
-
asBoolean
public boolean asBoolean()Description copied from interface:LicenseCheckerJsonValueCoerces underlying value to boolean according to the rules of Javascript coercion.- Specified by:
asBooleanin interfaceLicenseCheckerJsonValue
-
asNumber
public double asNumber()Description copied from interface:LicenseCheckerJsonValueCoerces the underlying value to a number according to the rules of Javascript coercion.- Specified by:
asNumberin interfaceLicenseCheckerJsonValue
-
asString
Description copied from interface:LicenseCheckerJsonValueCoerces the underlying value to a String according to the rules of JavaScript coercion.- Specified by:
asStringin interfaceLicenseCheckerJsonValue
-
get
Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array.- Specified by:
getin interfaceLicenseCheckerJsonArray
-
getArray
Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array (uncoerced) as a LicenseCheckerJsonArray. If the type is not an array, this can result in runtime errors.- Specified by:
getArrayin interfaceLicenseCheckerJsonArray
-
getBoolean
public boolean getBoolean(int index) Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array (uncoerced) as a boolean. If the type is not a boolean, this can result in runtime errors.- Specified by:
getBooleanin interfaceLicenseCheckerJsonArray
-
getNumber
public double getNumber(int index) Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array (uncoerced) as a number. If the type is not a number, this can result in runtime errors.- Specified by:
getNumberin interfaceLicenseCheckerJsonArray
-
getObject
Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array (uncoerced) as a LicenseCheckerJsonObject If the type is not an object,, this can result in runtime errors.- Specified by:
getObjectin interfaceLicenseCheckerJsonArray
-
getObject
- Specified by:
getObjectin classLicenseCheckerJreJsonValue
-
getString
Description copied from interface:LicenseCheckerJsonArrayReturn the ith element of the array (uncoerced) as a String. If the type is not a String, this can result in runtime errors.- Specified by:
getStringin interfaceLicenseCheckerJsonArray
-
getType
Description copied from interface:LicenseCheckerJsonValueReturns an enumeration representing the fundamental JSON type.- Specified by:
getTypein interfaceLicenseCheckerJsonValue
-
jsEquals
Description copied from interface:LicenseCheckerJsonValueEquivalent of Javascript '==' operator comparison between two values.- Specified by:
jsEqualsin interfaceLicenseCheckerJsonValue
-
length
public int length()Description copied from interface:LicenseCheckerJsonArrayLength of the array.- Specified by:
lengthin interfaceLicenseCheckerJsonArray
-
remove
public void remove(int index) Description copied from interface:LicenseCheckerJsonArrayRemove an element of the array at a particular index.- Specified by:
removein interfaceLicenseCheckerJsonArray
-
set
Description copied from interface:LicenseCheckerJsonArraySet the value at index to be a given value.- Specified by:
setin interfaceLicenseCheckerJsonArray
-
set
Description copied from interface:LicenseCheckerJsonArraySet the value at index to be a String value.- Specified by:
setin interfaceLicenseCheckerJsonArray
-
set
public void set(int index, double number) Description copied from interface:LicenseCheckerJsonArraySet the value at index to be a number value.- Specified by:
setin interfaceLicenseCheckerJsonArray
-
set
public void set(int index, boolean bool) Description copied from interface:LicenseCheckerJsonArraySet the value at index to be a boolean value.- Specified by:
setin interfaceLicenseCheckerJsonArray
-
toJson
Description copied from interface:LicenseCheckerJsonValueReturns a serialized JSON string representing this value.- Specified by:
toJsonin interfaceLicenseCheckerJsonValue- Returns:
-
traverse
public void traverse(com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJsonVisitor visitor, com.vaadin.pro.licensechecker.json.impl.LicenseCheckerJsonContext ctx) - Specified by:
traversein classLicenseCheckerJreJsonValue
-