- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Way to read and write JSON documents
Java wrapper for Qt class QJsonDocument
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQJsonDocument::DataValidation
static final class
Result class forfromJson(QByteArray)
static enum
Java wrapper for Qt enumQJsonDocument::JsonFormat
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
SeeQJsonDocument::
BinaryFormatTag -
Constructor Summary
ConstructorDescriptionQJsonDocument
(QJsonArray array) QJsonDocument
(QJsonDocument other) QJsonDocument
(QJsonObject object) -
Method Summary
Modifier and TypeMethodDescriptionfinal QJsonArray
array()
final void
assign
(QJsonDocument other) clone()
Creates and returns a copy of this object.boolean
static QJsonDocument
fromBinaryData
(QByteArray data) Overloaded function forfromBinaryData(io.qt.core.QByteArray, io.qt.core.QJsonDocument.DataValidation)
withvalidation = io.qt.core.QJsonDocument.DataValidation.Validate
.static QJsonDocument
fromBinaryData
(QByteArray data, QJsonDocument.DataValidation validation) static QJsonDocument.FromJsonResult
fromJson
(QByteArray json) static QJsonDocument
fromRawData
(byte[] data) Overloaded function forinvalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
static QJsonDocument
fromRawData
(byte[] data, QJsonDocument.DataValidation validation) Overloaded function forinvalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
static QJsonDocument
fromRawData
(String data) Overloaded function forinvalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
static QJsonDocument
fromRawData
(String data, QJsonDocument.DataValidation validation) Overloaded function forinvalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
static QJsonDocument
fromRawData
(ByteBuffer data, int size) Overloaded function forfromRawData(java.nio.ByteBuffer, int, io.qt.core.QJsonDocument.DataValidation)
withvalidation = io.qt.core.QJsonDocument.DataValidation.Validate
.static QJsonDocument
fromRawData
(ByteBuffer data, int size, QJsonDocument.DataValidation validation) static QJsonDocument
fromVariant
(Object variant) final QJsonValue
get
(int i) final QJsonValue
final QJsonValue
getArrayValue
(int i) Delegate forget(int)
.final QJsonValue
getObjectValue
(String key) Delegate forget(java.lang.String)
.int
hashCode()
Returns the objects's hash code computed byqHash(QJsonDocument)
.final boolean
isArray()
final boolean
isEmpty()
final boolean
isNull()
final boolean
isObject()
final QJsonObject
object()
final byte []
rawData()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QJsonDocument&) final void
setArray
(QJsonArray array) final void
setObject
(QJsonObject object) final void
swap
(QJsonDocument other) final QByteArray
final QByteArray
toJson()
final QByteArray
toJson
(QJsonDocument.JsonFormat format) toString()
Seeoperator<<(QDebug,
QJsonDocument) final Object
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QJsonDocument) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
BinaryFormatTag
public static final int BinaryFormatTagSee
QJsonDocument::
BinaryFormatTag
-
-
Constructor Details
-
QJsonDocument
public QJsonDocument() -
QJsonDocument
-
QJsonDocument
-
QJsonDocument
-
-
Method Details
-
array
-
isArray
-
isEmpty
-
isNull
-
isObject
-
object
-
writeTo
See
operator<<(QDataStream&,
QJsonDocument) -
assign
-
readFrom
See
operator>>(QDataStream&,
QJsonDocument&) -
getObjectValue
Delegate for
get(java.lang.String)
. -
get
-
getArrayValue
Delegate for
get(int)
. -
get
-
rawData
-
setArray
-
setObject
-
swap
-
toBinaryData
-
toJson
-
toJson
-
toVariant
-
fromBinaryData
Overloaded function for
fromBinaryData(io.qt.core.QByteArray, io.qt.core.QJsonDocument.DataValidation)
withvalidation = io.qt.core.QJsonDocument.DataValidation.Validate
. -
fromBinaryData
public static QJsonDocument fromBinaryData(QByteArray data, QJsonDocument.DataValidation validation) -
fromJson
-
fromRawData
Overloaded function for
fromRawData(java.nio.ByteBuffer, int, io.qt.core.QJsonDocument.DataValidation)
withvalidation = io.qt.core.QJsonDocument.DataValidation.Validate
. -
fromRawData
public static QJsonDocument fromRawData(ByteBuffer data, int size, QJsonDocument.DataValidation validation) -
fromVariant
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QJsonDocument)
. -
fromRawData
Overloaded function for
invalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
-
fromRawData
Overloaded function for
invalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
-
fromRawData
Overloaded function for
invalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
-
fromRawData
Overloaded function for
invalid @link
#fromRawData(java.nio.ByteBuffer, QJsonDocument.DataValidation)
-
toString
See
operator<<(QDebug,
QJsonDocument) -
clone
Creates and returns a copy of this object.
-