- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QCborValue>
public class QCborValue extends QtObject implements Comparable<QCborValue>, Cloneable
Encapsulates a value in CBOR
Java wrapper for Qt class QCborValue
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QCborValue.DiagnosticNotationOption
Java wrapper for Qt enum QCborValue::DiagnosticNotationOptionstatic class
QCborValue.DiagnosticNotationOptions
QFlags type for enumQCborValue.DiagnosticNotationOption
static class
QCborValue.EncodingOption
Java wrapper for Qt enum QCborValue::EncodingOptionstatic class
QCborValue.EncodingOptions
QFlags type for enumQCborValue.EncodingOption
static class
QCborValue.FromCborResult
Result class forfromCbor(io.qt.core.QByteArray)
static class
QCborValue.Type
Java wrapper for Qt enum QCborValue::Type -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QCborValue()
QCborValue(boolean b_)
QCborValue(double v)
QCborValue(int i)
QCborValue(long i)
QCborValue(QByteArray ba)
QCborValue(QCborArray a)
QCborValue(QCborKnownTags t_)
Overloaded constructor forQCborValue(io.qt.core.QCborKnownTags, io.qt.core.QCborValue)
withtv = new io.qt.core.QCborValue()
.QCborValue(QCborKnownTags t_, QCborValue tv)
QCborValue(QCborMap m)
QCborValue(QCborSimpleType st)
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(QCborValue.Type t_)
QCborValue(QDateTime dt)
QCborValue(QRegularExpression rx)
QCborValue(QUrl url)
QCborValue(QUuid uuid)
protected
QCborValue(QtObject.QPrivateConstructor p)
Constructor for internal use only.QCborValue(String s)
-
Method Summary
Modifier and Type Method Description QCborValue
clone()
int
compare(QCborValue other)
int
compareTo(QCborValue other)
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 QCborValue.FromCborResult
fromCbor(QByteArray ba)
static QCborValue
fromCbor(QCborStreamReader reader)
static QCborValue
fromJsonValue(QJsonValue v)
static QCborValue
fromVariant(Object variant)
int
hashCode()
boolean
isArray()
boolean
isBool()
boolean
isByteArray()
boolean
isContainer()
boolean
isDateTime()
boolean
isDouble()
boolean
isFalse()
boolean
isInteger()
boolean
isInvalid()
boolean
isMap()
boolean
isNull()
boolean
isRegularExpression()
boolean
isSimpleType()
boolean
isSimpleType(QCborSimpleType st)
boolean
isString()
boolean
isTag()
boolean
isTrue()
boolean
isUndefined()
boolean
isUrl()
boolean
isUuid()
void
readFrom(QDataStream arg__1)
void
set(QCborValue other)
void
setValue(long key, QCborValue value)
void
setValue(String key, QCborValue value)
void
swap(QCborValue other)
QCborTag
tag()
Overloaded function fortag(io.qt.core.QCborTag)
withdefaultValue = QCborTag.resolve(-1)
.QCborTag
tag(QCborTag defaultValue)
QCborValue
taggedValue()
Overloaded function fortaggedValue(io.qt.core.QCborValue)
withdefaultValue = new io.qt.core.QCborValue()
.QCborValue
taggedValue(QCborValue defaultValue)
QCborArray
toArray()
QCborArray
toArray(QCborArray defaultValue)
boolean
toBool()
Overloaded function fortoBool(boolean)
withdefaultValue = false
.boolean
toBool(boolean defaultValue)
QByteArray
toByteArray()
Overloaded function fortoByteArray(io.qt.core.QByteArray)
withdefaultValue = new io.qt.core.QByteArray()
.QByteArray
toByteArray(QByteArray defaultValue)
QByteArray
toCbor()
Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
.void
toCbor(QCborStreamWriter writer)
Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
withopt = new io.qt.core.QCborValue.EncodingOptions(0)
.void
toCbor(QCborStreamWriter writer, QCborValue.EncodingOption... opt)
Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)
.void
toCbor(QCborStreamWriter writer, QCborValue.EncodingOptions opt)
QByteArray
toCbor(QCborValue.EncodingOption... opt)
Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions)
.QByteArray
toCbor(QCborValue.EncodingOptions opt)
QDateTime
toDateTime()
Overloaded function fortoDateTime(io.qt.core.QDateTime)
withdefaultValue = new io.qt.core.QDateTime()
.QDateTime
toDateTime(QDateTime defaultValue)
String
toDiagnosticNotation()
Overloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
withopts = new io.qt.core.QCborValue.DiagnosticNotationOptions(0)
.String
toDiagnosticNotation(QCborValue.DiagnosticNotationOption... opts)
Overloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)
.String
toDiagnosticNotation(QCborValue.DiagnosticNotationOptions opts)
double
toDouble()
Overloaded function fortoDouble(double)
withdefaultValue = 0
.double
toDouble(double defaultValue)
long
toInteger()
Overloaded function fortoInteger(long)
withdefaultValue = 0
.long
toInteger(long defaultValue)
QJsonValue
toJsonValue()
QCborMap
toMap()
QCborMap
toMap(QCborMap defaultValue)
QRegularExpression
toRegularExpression()
Overloaded function fortoRegularExpression(io.qt.core.QRegularExpression)
withdefaultValue = new io.qt.core.QRegularExpression()
.QRegularExpression
toRegularExpression(QRegularExpression defaultValue)
QCborSimpleType
toSimpleType()
Overloaded function fortoSimpleType(io.qt.core.QCborSimpleType)
withdefaultValue = io.qt.core.QCborSimpleType.Undefined
.QCborSimpleType
toSimpleType(QCborSimpleType defaultValue)
String
toString()
Overloaded function fortoString(java.lang.String)
withdefaultValue = ""
.String
toString(String defaultValue)
QUrl
toUrl()
Overloaded function fortoUrl(io.qt.core.QUrl)
withdefaultValue = new io.qt.core.QUrl()
.QUrl
toUrl(QUrl defaultValue)
QUuid
toUuid()
Overloaded function fortoUuid(io.qt.core.QUuid)
withdefaultValue = new io.qt.core.QUuid()
.QUuid
toUuid(QUuid defaultValue)
Object
toVariant()
QCborValue.Type
type()
QCborValue
value(long key)
QCborValue
value(String key)
void
writeTo(QDataStream arg__1)
-
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
-
readFrom
-
value
-
value
-
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
@QtUninvokable public final QRegularExpression toRegularExpression(QRegularExpression defaultValue) -
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 = ""
. -
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 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. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QCborValue>
-
hashCode
public int hashCode() -
setValue
-
setValue
-
clone
-