- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QCborValue>
Encapsulates a value in CBOR
Java wrapper for Qt's class QCborValue
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QCborValue::DiagnosticNotationOptionstatic final class
QFlags type for enumQCborValue.DiagnosticNotationOption
static enum
Java wrapper for Qt enum QCborValue::EncodingOptionstatic final class
QFlags type for enumQCborValue.EncodingOption
static final class
Result class forfromCbor(QByteArray)
static enum
Java wrapper for Qt enum QCborValue::TypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQCborValue
(boolean b_) QCborValue
(double v) QCborValue
(int i) QCborValue
(long i) QCborValue
(QByteArray ba) Overloaded constructor forQCborValue(io.qt.core.QCborKnownTags, io.qt.core.QCborValue)
withtv = new io.qt.core.QCborValue()
.QCborValue
(QCborKnownTags t_, QCborValue tv) QCborValue
(QCborTag tag) Overloaded constructor forQCborValue(io.qt.core.QCborTag, io.qt.core.QCborValue)
withtaggedValue = new io.qt.core.QCborValue()
.QCborValue
(QCborTag tag, QCborValue taggedValue) QCborValue
(QCborValue other) QCborValue
(QDateTime dt) QCborValue
(QUrl url) QCborValue
(QUuid uuid) QCborValue
(String s) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QCborValue other) clone()
final int
compare
(QCborValue other) int
compareTo
(QCborValue other) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.static QCborValue.FromCborResult
fromCbor
(QByteArray ba) static QCborValue
fromCbor
(QCborStreamReader reader) static QCborValue
static QCborValue
fromVariant
(Object variant) final QCborValue
get
(long key) final QCborValue
int
hashCode()
final boolean
isArray()
final boolean
isBool()
final boolean
final boolean
final boolean
final boolean
isDouble()
final boolean
isFalse()
final boolean
final boolean
final boolean
isMap()
final boolean
isNull()
final boolean
final boolean
final boolean
final boolean
isString()
final boolean
isTag()
final boolean
isTrue()
final boolean
final boolean
isUrl()
final boolean
isUuid()
void
readFrom
(QDataStream arg__1) final void
set
(long key, QCborValue value) final void
set
(QCborValue other) Deprecated.final void
set
(String key, QCborValue value) final void
setValue
(long key, QCborValue value) Delegate forset(long, io.qt.core.QCborValue)
.final void
setValue
(String key, QCborValue value) Delegate forset(java.lang.String, io.qt.core.QCborValue)
.final void
swap
(QCborValue other) final QCborTag
tag()
Overloaded function fortag(io.qt.core.QCborTag)
withdefaultValue = QCborTag.resolve(-1)
.final QCborTag
final QCborValue
Overloaded function fortaggedValue(io.qt.core.QCborValue)
withdefaultValue = new io.qt.core.QCborValue()
.final QCborValue
taggedValue
(QCborValue defaultValue) final QCborArray
toArray()
final QCborArray
toArray
(QCborArray defaultValue) final boolean
toBool()
Overloaded function fortoBool(boolean)
withdefaultValue = false
.final boolean
toBool
(boolean defaultValue) final QByteArray
Overloaded function fortoByteArray(io.qt.core.QByteArray)
withdefaultValue = new io.qt.core.QByteArray()
.final QByteArray
toByteArray
(QByteArray defaultValue) final QByteArray
toCbor()
Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
.final QByteArray
toCbor
(QCborValue.EncodingOption ... opt) Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions)
.final QByteArray
final void
toCbor
(QCborStreamWriter writer) Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
.final void
toCbor
(QCborStreamWriter writer, QCborValue.EncodingOption ... opt) Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
.final void
toCbor
(QCborStreamWriter writer, QCborValue.EncodingOptions opt) final QDateTime
Overloaded function fortoDateTime(io.qt.core.QDateTime)
withdefaultValue = new io.qt.core.QDateTime()
.final QDateTime
toDateTime
(QDateTime defaultValue) final String
Overloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
withopts = new io.qt.core.QCborValue.DiagnosticNotationOptions(0)
.final String
Overloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
.final String
final double
toDouble()
Overloaded function fortoDouble(double)
withdefaultValue = 0
.final double
toDouble
(double defaultValue) final long
Overloaded function fortoInteger(long)
withdefaultValue = 0
.final long
toInteger
(long defaultValue) final QJsonValue
final QCborMap
toMap()
final QCborMap
final QRegularExpression
Overloaded function fortoRegularExpression(io.qt.core.QRegularExpression)
withdefaultValue = new io.qt.core.QRegularExpression()
.final QRegularExpression
toRegularExpression
(QRegularExpression defaultValue) final QCborSimpleType
Overloaded function fortoSimpleType(io.qt.core.QCborSimpleType)
withdefaultValue = io.qt.core.QCborSimpleType.Undefined
.final QCborSimpleType
toSimpleType
(QCborSimpleType defaultValue) final String
toString()
Overloaded function fortoString(java.lang.String)
withdefaultValue = (String)null
.final String
final QUrl
toUrl()
Overloaded function fortoUrl(io.qt.core.QUrl)
withdefaultValue = new io.qt.core.QUrl()
.final QUrl
final QUuid
toUuid()
Overloaded function fortoUuid(io.qt.core.QUuid)
withdefaultValue = new io.qt.core.QUuid()
.final QUuid
final Object
final QCborValue.Type
type()
final QCborValue
value
(long key) Delegate forget(long)
.final QCborValue
Delegate forget(java.lang.String)
.void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QCborValue
public QCborValue() -
QCborValue
Overloaded constructor for
QCborValue(io.qt.core.QCborKnownTags, io.qt.core.QCborValue)
withtv = new io.qt.core.QCborValue()
. -
QCborValue
-
QCborValue
-
QCborValue
Overloaded constructor for
QCborValue(io.qt.core.QCborTag, io.qt.core.QCborValue)
withtaggedValue = new io.qt.core.QCborValue()
. -
QCborValue
-
QCborValue
-
QCborValue
public QCborValue(boolean b_) -
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
-
QCborValue
public QCborValue(double v) -
QCborValue
public QCborValue(int i) -
QCborValue
public QCborValue(long i) -
QCborValue
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
compare
-
isArray
-
isBool
-
isByteArray
-
isContainer
-
isDateTime
-
isDouble
-
isFalse
-
isInteger
-
isInvalid
-
isMap
-
isNull
-
isRegularExpression
-
isSimpleType
-
isSimpleType
-
isString
-
isTag
-
isTrue
-
isUndefined
-
isUrl
-
isUuid
-
writeTo
-
set
Deprecated.Useassign(io.qt.core.QCborValue)
instead. -
assign
-
readFrom
-
value
Delegate for
get(java.lang.String)
. -
get
-
setValue
Delegate for
set(java.lang.String, io.qt.core.QCborValue)
. -
set
-
value
Delegate for
get(long)
. -
get
-
setValue
Delegate for
set(long, io.qt.core.QCborValue)
. -
set
-
swap
-
tag
Overloaded function for
tag(io.qt.core.QCborTag)
withdefaultValue = QCborTag.resolve(-1)
. -
tag
-
taggedValue
Overloaded function for
taggedValue(io.qt.core.QCborValue)
withdefaultValue = new io.qt.core.QCborValue()
. -
taggedValue
-
toArray
-
toArray
-
toBool
Overloaded function for
toBool(boolean)
withdefaultValue = false
. -
toBool
-
toByteArray
Overloaded function for
toByteArray(io.qt.core.QByteArray)
withdefaultValue = new io.qt.core.QByteArray()
. -
toByteArray
-
toCbor
@QtUninvokable public final void toCbor(QCborStreamWriter writer, QCborValue.EncodingOption ... opt) Overloaded function for
toCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
. -
toCbor
Overloaded function for
toCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
. -
toCbor
-
toCbor
Overloaded function for
toCbor(io.qt.core.QCborValue.EncodingOptions)
. -
toCbor
Overloaded function for
toCbor(io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
. -
toCbor
-
toDateTime
Overloaded function for
toDateTime(io.qt.core.QDateTime)
withdefaultValue = new io.qt.core.QDateTime()
. -
toDateTime
-
toDiagnosticNotation
@QtUninvokable public final String toDiagnosticNotation(QCborValue.DiagnosticNotationOption ... opts) Overloaded function for
toDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
. -
toDiagnosticNotation
Overloaded function for
toDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
withopts = new io.qt.core.QCborValue.DiagnosticNotationOptions(0)
. -
toDiagnosticNotation
-
toDouble
Overloaded function for
toDouble(double)
withdefaultValue = 0
. -
toDouble
-
toInteger
Overloaded function for
toInteger(long)
withdefaultValue = 0
. -
toInteger
-
toJsonValue
-
toMap
-
toMap
-
toRegularExpression
Overloaded function for
toRegularExpression(io.qt.core.QRegularExpression)
withdefaultValue = new io.qt.core.QRegularExpression()
. -
toRegularExpression
-
toSimpleType
Overloaded function for
toSimpleType(io.qt.core.QCborSimpleType)
withdefaultValue = io.qt.core.QCborSimpleType.Undefined
. -
toSimpleType
-
toString
Overloaded function for
toString(java.lang.String)
withdefaultValue = (String)null
. -
toString
-
toUrl
Overloaded function for
toUrl(io.qt.core.QUrl)
withdefaultValue = new io.qt.core.QUrl()
. -
toUrl
-
toUuid
Overloaded function for
toUuid(io.qt.core.QUuid)
withdefaultValue = new io.qt.core.QUuid()
. -
toUuid
-
toVariant
-
type
-
fromCbor
-
fromCbor
-
fromJsonValue
-
fromVariant
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QCborValue>
-
hashCode
-
clone
-
assign(io.qt.core.QCborValue)
instead.