- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QCborValue>
Encapsulates a value in CBOR
Java wrapper for Qt class QCborValue
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQCborValue::DiagnosticNotationOption
static final class
QFlags
type for enumQCborValue.DiagnosticNotationOption
static enum
Java wrapper for Qt enumQCborValue::EncodingOption
static final class
QFlags
type for enumQCborValue.EncodingOption
static final class
Result class forfromCbor(QByteArray)
static enum
Java wrapper for Qt enumQCborValue::Type
Nested 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
ConstructorDescriptionQCborValue
(boolean b_) QCborValue
(double v) QCborValue
(int i) SeeQCborValue::
QCborValue(int) 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) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QCborValue other) clone()
Creates and returns a copy of this object.final int
compare
(QCborValue other) int
compareTo
(QCborValue other) boolean
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()
Returns the objects's hash code computed byqHash(QCborValue)
.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) Seeoperator>>(QDataStream&,
QCborValue&) final void
set
(long key, QCborValue value) SeeQCborValue::
operator[](qint64) final void
set
(QCborValue other) Deprecated.final void
set
(String key, QCborValue value) SeeQCborValue::
operator[](QString) 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
-
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) See
QCborValue::
QCborValue(int) -
QCborValue
public QCborValue(long i) -
QCborValue
Overloaded constructor for
QCborValue(io.qt.core.QCborKnownTags, io.qt.core.QCborValue)
withtv = new io.qt.core.QCborValue()
. -
QCborValue
Overloaded constructor for
QCborValue(io.qt.core.QCborTag, io.qt.core.QCborValue)
withtaggedValue = new io.qt.core.QCborValue()
.
-
-
Method Details
-
compare
-
isArray
-
isBool
-
isByteArray
-
isContainer
-
isDateTime
-
isDouble
-
isFalse
-
isInteger
-
isInvalid
-
isMap
-
isNull
-
isRegularExpression
-
isSimpleType
-
isSimpleType
-
isString
-
isTag
-
isTrue
-
isUndefined
-
isUrl
-
isUuid
-
writeTo
-
assign
-
readFrom
See
operator>>(QDataStream&,
QCborValue&) -
get
-
set
See
QCborValue::
operator[](QString) -
get
-
set
See
QCborValue::
operator[](qint64) -
swap
-
tag
-
taggedValue
-
toArray
-
toArray
-
toBool
-
toByteArray
-
toCbor
-
toCbor
-
toDateTime
-
toDiagnosticNotation
-
toDouble
-
toInteger
-
toJsonValue
-
toMap
-
toMap
-
toRegularExpression
-
toSimpleType
-
toString
-
toUrl
-
toUuid
-
toVariant
-
type
-
fromCbor
-
fromCbor
-
fromJsonValue
-
fromVariant
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QCborValue>
-
hashCode
Returns the objects's hash code computed byqHash(QCborValue)
. -
clone
Creates and returns a copy of this object.
-
set
Deprecated.Useassign(io.qt.core.QCborValue)
instead. -
value
Delegate for
get(java.lang.String)
. -
setValue
Delegate for
set(java.lang.String, io.qt.core.QCborValue)
. -
value
Delegate for
get(long)
. -
setValue
Delegate for
set(long, io.qt.core.QCborValue)
. -
tag
Overloaded function for
tag(io.qt.core.QCborTag)
withdefaultValue = QCborTag.resolve(-1)
. -
taggedValue
Overloaded function for
taggedValue(io.qt.core.QCborValue)
withdefaultValue = new io.qt.core.QCborValue()
. -
toBool
Overloaded function for
toBool(boolean)
withdefaultValue = false
. -
toByteArray
Overloaded function for
toByteArray(io.qt.core.QByteArray)
withdefaultValue = new io.qt.core.QByteArray()
. -
toCbor
Overloaded function for
toCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
. -
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.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
. -
toCbor
Overloaded function for
toCbor(io.qt.core.QCborValue.EncodingOptions)
. -
toDateTime
Overloaded function for
toDateTime(io.qt.core.QDateTime)
withdefaultValue = new io.qt.core.QDateTime()
. -
toDiagnosticNotation
Overloaded function for
toDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
withopts = new io.qt.core.QCborValue.DiagnosticNotationOptions(0)
. -
toDiagnosticNotation
@QtUninvokable public final String toDiagnosticNotation(QCborValue.DiagnosticNotationOption ... opts) Overloaded function for
toDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
. -
toDouble
Overloaded function for
toDouble(double)
withdefaultValue = 0
. -
toInteger
Overloaded function for
toInteger(long)
withdefaultValue = 0
. -
toRegularExpression
Overloaded function for
toRegularExpression(io.qt.core.QRegularExpression)
withdefaultValue = new io.qt.core.QRegularExpression()
. -
toSimpleType
Overloaded function for
toSimpleType(io.qt.core.QCborSimpleType)
withdefaultValue = io.qt.core.QCborSimpleType.Undefined
. -
toString
Overloaded function for
toString(java.lang.String)
withdefaultValue = (String)null
. -
toUrl
Overloaded function for
toUrl(io.qt.core.QUrl)
withdefaultValue = new io.qt.core.QUrl()
. -
toUuid
Overloaded function for
toUuid(io.qt.core.QUuid)
withdefaultValue = new io.qt.core.QUuid()
.
-
assign(io.qt.core.QCborValue)
instead.