- All Implemented Interfaces:
QtObjectInterface,Cloneable,Comparable<QCborValue>
Encapsulates a value in CBOR
Java wrapper for Qt's class QCborValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enum QCborValue::DiagnosticNotationOptionstatic final classQFlags type for enumQCborValue.DiagnosticNotationOptionstatic enumJava wrapper for Qt enum QCborValue::EncodingOptionstatic final classQFlags type for enumQCborValue.EncodingOptionstatic final classResult class forfromCbor(QByteArray)static enumJava wrapper for Qt enum QCborValue::TypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QMetaObjectThis variable stores the meta-object for the class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionQCborValue(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) protectedConstructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QCborValue other) clone()Creates and returns a copy of this object.final intcompare(QCborValue other) intcompareTo(QCborValue other) booleanUsed 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.FromCborResultfromCbor(QByteArray ba) static QCborValuefromCbor(QCborStreamReader reader) static QCborValuestatic QCborValuefromVariant(Object variant) final QCborValueget(long key) final QCborValueinthashCode()final booleanisArray()final booleanisBool()final booleanfinal booleanfinal booleanfinal booleanisDouble()final booleanisFalse()final booleanfinal booleanfinal booleanisMap()final booleanisNull()final booleanfinal booleanfinal booleanfinal booleanisString()final booleanisTag()final booleanisTrue()final booleanfinal booleanisUrl()final booleanisUuid()voidreadFrom(QDataStream arg__1) final voidset(long key, QCborValue value) final voidset(QCborValue other) Deprecated.final voidset(String key, QCborValue value) final voidsetValue(long key, QCborValue value) Delegate forset(long, io.qt.core.QCborValue).final voidsetValue(String key, QCborValue value) Delegate forset(java.lang.String, io.qt.core.QCborValue).final voidswap(QCborValue other) final QCborTagtag()Overloaded function fortag(io.qt.core.QCborTag)withdefaultValue = QCborTag.resolve(-1).final QCborTagfinal QCborValueOverloaded function fortaggedValue(io.qt.core.QCborValue)withdefaultValue = new io.qt.core.QCborValue().final QCborValuetaggedValue(QCborValue defaultValue) final QCborArraytoArray()final QCborArraytoArray(QCborArray defaultValue) final booleantoBool()Overloaded function fortoBool(boolean)withdefaultValue = false.final booleantoBool(boolean defaultValue) final QByteArrayOverloaded function fortoByteArray(io.qt.core.QByteArray)withdefaultValue = new io.qt.core.QByteArray().final QByteArraytoByteArray(QByteArray defaultValue) final QByteArraytoCbor()Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions)withopt = new io.qt.core.QCborValue.EncodingOptions(0).final QByteArraytoCbor(QCborValue.EncodingOption ... opt) Overloaded function fortoCbor(io.qt.core.QCborValue.EncodingOptions).final QByteArrayfinal voidtoCbor(QCborStreamWriter writer) Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions)withopt = new io.qt.core.QCborValue.EncodingOptions(0).final voidtoCbor(QCborStreamWriter writer, QCborValue.EncodingOption ... opt) Overloaded function fortoCbor(io.qt.core.QCborStreamWriter, io.qt.core.QCborValue.EncodingOptions).final voidtoCbor(QCborStreamWriter writer, QCborValue.EncodingOptions opt) final QDateTimeOverloaded function fortoDateTime(io.qt.core.QDateTime)withdefaultValue = new io.qt.core.QDateTime().final QDateTimetoDateTime(QDateTime defaultValue) final StringOverloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions)withopts = new io.qt.core.QCborValue.DiagnosticNotationOptions(0).final StringOverloaded function fortoDiagnosticNotation(io.qt.core.QCborValue.DiagnosticNotationOptions).final Stringfinal doubletoDouble()Overloaded function fortoDouble(double)withdefaultValue = 0.final doubletoDouble(double defaultValue) final longOverloaded function fortoInteger(long)withdefaultValue = 0.final longtoInteger(long defaultValue) final QJsonValuefinal QCborMaptoMap()final QCborMapfinal QRegularExpressionOverloaded function fortoRegularExpression(io.qt.core.QRegularExpression)withdefaultValue = new io.qt.core.QRegularExpression().final QRegularExpressiontoRegularExpression(QRegularExpression defaultValue) final QCborSimpleTypeOverloaded function fortoSimpleType(io.qt.core.QCborSimpleType)withdefaultValue = io.qt.core.QCborSimpleType.Undefined.final QCborSimpleTypetoSimpleType(QCborSimpleType defaultValue) final StringtoString()Overloaded function fortoString(java.lang.String)withdefaultValue = (String)null.final Stringfinal QUrltoUrl()Overloaded function fortoUrl(io.qt.core.QUrl)withdefaultValue = new io.qt.core.QUrl().final QUrlfinal QUuidtoUuid()Overloaded function fortoUuid(io.qt.core.QUuid)withdefaultValue = new io.qt.core.QUuid().final QUuidfinal Objectfinal QCborValue.Typetype()final QCborValuevalue(long key) Delegate forget(long).final QCborValueDelegate forget(java.lang.String).voidwriteTo(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:QtObjectUsed 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:
compareToin interfaceComparable<QCborValue>
-
hashCode
-
clone
Creates and returns a copy of this object.
-
assign(io.qt.core.QCborValue)instead.