All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QCborError Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Holds the error condition found while parsing or validating a CBOR stream

*

Java wrapper for Qt class QCborError

*/ public class QCborError extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QCborError.class); /** *

Java wrapper for Qt enum QCborError::Code

*/ public enum Code implements QtEnumerator { /** *

Representing QCborError::UnknownError

*/ UnknownError(1), /** *

Representing QCborError::AdvancePastEnd

*/ AdvancePastEnd(3), /** *

Representing QCborError::InputOutputError

*/ InputOutputError(4), /** *

Representing QCborError::GarbageAtEnd

*/ GarbageAtEnd(256), /** *

Representing QCborError::EndOfFile

*/ EndOfFile(257), /** *

Representing QCborError::UnexpectedBreak

*/ UnexpectedBreak(258), /** *

Representing QCborError::UnknownType

*/ UnknownType(259), /** *

Representing QCborError::IllegalType

*/ IllegalType(260), /** *

Representing QCborError::IllegalNumber

*/ IllegalNumber(261), /** *

Representing QCborError::IllegalSimpleType

*/ IllegalSimpleType(262), /** *

Representing QCborError::InvalidUtf8String

*/ InvalidUtf8String(516), /** *

Representing QCborError::DataTooLarge

*/ DataTooLarge(1024), /** *

Representing QCborError::NestingTooDeep

*/ NestingTooDeep(1025), /** *

Representing QCborError::UnsupportedType

*/ UnsupportedType(1026), /** *

Representing QCborError::NoError

*/ NoError(0); static { QtJambi_LibraryUtilities.initialize(); } private Code(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Code resolve(int value) { switch (value) { case 1: return UnknownError; case 3: return AdvancePastEnd; case 4: return InputOutputError; case 256: return GarbageAtEnd; case 257: return EndOfFile; case 258: return UnexpectedBreak; case 259: return UnknownType; case 260: return IllegalType; case 261: return IllegalNumber; case 262: return IllegalSimpleType; case 516: return InvalidUtf8String; case 1024: return DataTooLarge; case 1025: return NestingTooDeep; case 1026: return UnsupportedType; case 0: return NoError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QCborError::QCborError()

*/ public QCborError(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QCborError instance); /** *

See QCborError::QCborError(QCborError)

*/ public QCborError(io.qt.core.@NonNull QCborError other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QCborError instance, io.qt.core.QCborError other); /** *

See QCborError::QCborError{QCborError::Code}

*/ public QCborError(io.qt.core.QCborError.@NonNull Code c){ super((QPrivateConstructor)null); initialize_native(this, c); } private native static void initialize_native(QCborError instance, io.qt.core.QCborError.Code c); /** *

See operator==(QCborError,QCborError)

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QCborError value2){ return equals_native_cref_QCborError(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2)); } @QtUninvokable private native boolean equals_native_cref_QCborError(long __this__nativeId, long value2); /** *

See QCborError::toString()const

*/ @QtUninvokable public final java.lang.@NonNull String toString(){ return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toString_native_constfct(long __this__nativeId); /** *

See QCborError::c

*/ @QtUninvokable public final void setCode(io.qt.core.QCborError.@NonNull Code code){ setCode_native_cref_QCborError_Code(QtJambi_LibraryUtilities.internal.nativeId(this), code.value()); } @QtUninvokable private native void setCode_native_cref_QCborError_Code(long __this__nativeId, int code); /** *

See QCborError::c

*/ @QtUninvokable public final io.qt.core.QCborError.@NonNull Code code(){ return io.qt.core.QCborError.Code.resolve(code_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int code_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QCborError(QPrivateConstructor p) { super(p); } /** *

See operator==(QCborError,QCborError)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QCborError) { return equals((io.qt.core.QCborError) other); } return false; } /** * Returns the objects's hash code computed by qHash(QCborError). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QCborError::QCborError(QCborError)

*/ @QtUninvokable @Override public QCborError clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QCborError clone_native(long __this_nativeId); /** *

Overloaded function for {@link #equals(io.qt.core.QCborError)}.

*/ @QtUninvokable public final boolean equals(io.qt.core.QCborError.@NonNull Code value2) { return equals(new io.qt.core.QCborError(value2)); } /** * @hidden *

Kotlin property getter. In Java use {@link #code()} instead.

*/ @QtUninvokable public final io.qt.core.QCborError.@NonNull Code getCode() { return code(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy