java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QJsonValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QJsonValue extends QtObject implements Cloneable
Encapsulates a value in JSON
Java wrapper for Qt class QJsonValue
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QJsonValue.Type
Java wrapper for Qt enum QJsonValue::Type -
Constructor Summary
Constructors Modifier Constructor Description QJsonValue()
Overloaded constructor forQJsonValue(io.qt.core.QJsonValue.Type)
witharg__1 = io.qt.core.QJsonValue.Type.Null
.QJsonValue(boolean b)
QJsonValue(double n)
QJsonValue(int n)
QJsonValue(long v)
QJsonValue(QJsonArray a)
QJsonValue(QJsonObject o)
QJsonValue(QJsonValue other)
QJsonValue(QJsonValue.Type arg__1)
protected
QJsonValue(QtObject.QPrivateConstructor p)
Constructor for internal use only.QJsonValue(String s)
-
Method Summary
Modifier and Type Method Description QJsonValue
clone()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.static QJsonValue
fromVariant(Object variant)
QJsonValue
getArrayValue(long i)
QJsonValue
getObjectValue(String key)
int
hashCode()
boolean
isArray()
boolean
isBool()
boolean
isDouble()
boolean
isNull()
boolean
isObject()
boolean
isString()
boolean
isUndefined()
void
readFrom(QDataStream arg__1)
void
swap(QJsonValue other)
QJsonArray
toArray()
QJsonArray
toArray(QJsonArray defaultValue)
boolean
toBoolean()
Overloaded function fortoBoolean(boolean)
withdefaultValue = false
.boolean
toBoolean(boolean defaultValue)
double
toDouble()
Overloaded function fortoDouble(double)
withdefaultValue = 0
.double
toDouble(double defaultValue)
int
toInt()
Overloaded function fortoInt(int)
withdefaultValue = 0
.int
toInt(int defaultValue)
long
toInteger()
Overloaded function fortoInteger(long)
withdefaultValue = 0
.long
toInteger(long defaultValue)
QJsonObject
toObject()
QJsonObject
toObject(QJsonObject defaultValue)
String
toString()
String
toString(String defaultValue)
Object
toVariant()
QJsonValue.Type
type()
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QJsonValue
public QJsonValue()Overloaded constructor for
QJsonValue(io.qt.core.QJsonValue.Type)
witharg__1 = io.qt.core.QJsonValue.Type.Null
. -
QJsonValue
-
QJsonValue
public QJsonValue(boolean b) -
QJsonValue
-
QJsonValue
-
QJsonValue
-
QJsonValue
-
QJsonValue
public QJsonValue(double n) -
QJsonValue
public QJsonValue(int n) -
QJsonValue
public QJsonValue(long v) -
QJsonValue
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isArray
-
isBool
-
isDouble
-
isNull
-
isObject
-
isString
-
isUndefined
-
writeTo
-
readFrom
-
getObjectValue
-
getArrayValue
-
swap
-
toArray
-
toArray
-
toBoolean
Overloaded function for
toBoolean(boolean)
withdefaultValue = false
. -
toBoolean
-
toDouble
Overloaded function for
toDouble(double)
withdefaultValue = 0
. -
toDouble
-
toInt
Overloaded function for
toInt(int)
withdefaultValue = 0
. -
toInt
-
toInteger
Overloaded function for
toInteger(long)
withdefaultValue = 0
. -
toInteger
-
toObject
-
toObject
-
toString
-
toString
-
toVariant
-
type
-
fromVariant
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-