io.qt.core.QPropertyBindingError Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Java wrapper for Qt class QPropertyBindingError
*/
public class QPropertyBindingError extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QPropertyBindingError::Type
*/
public enum Type implements QtEnumerator {
/**
* Representing QPropertyBindingError:: NoError
*/
NoError(0),
/**
* Representing QPropertyBindingError:: BindingLoop
*/
BindingLoop(1),
/**
* Representing QPropertyBindingError:: EvaluationError
*/
EvaluationError(2),
/**
* Representing QPropertyBindingError:: UnknownError
*/
UnknownError(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private Type(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 Type resolve(int value) {
switch (value) {
case 0: return NoError;
case 1: return BindingLoop;
case 2: return EvaluationError;
case 3: return UnknownError;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QPropertyBindingError:: QPropertyBindingError()
*/
public QPropertyBindingError(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPropertyBindingError instance);
/**
* See QPropertyBindingError:: QPropertyBindingError(QPropertyBindingError)
*/
public QPropertyBindingError(io.qt.core.@NonNull QPropertyBindingError other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QPropertyBindingError instance, io.qt.core.QPropertyBindingError other);
/**
* See QPropertyBindingError:: QPropertyBindingError(QPropertyBindingError::Type, QString)
*/
public QPropertyBindingError(io.qt.core.QPropertyBindingError.@NonNull Type type, java.lang.@NonNull String description){
super((QPrivateConstructor)null);
initialize_native(this, type, description);
}
private native static void initialize_native(QPropertyBindingError instance, io.qt.core.QPropertyBindingError.Type type, java.lang.String description);
/**
* See QPropertyBindingError:: description()const
*/
@QtUninvokable
public final java.lang.@NonNull String description(){
return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String description_native_constfct(long __this__nativeId);
/**
* See QPropertyBindingError:: hasError()const
*/
@QtUninvokable
public final boolean hasError(){
return hasError_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasError_native_constfct(long __this__nativeId);
/**
* See QPropertyBindingError:: operator=(QPropertyBindingError)
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QPropertyBindingError other){
assign_native_cref_QPropertyBindingError(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QPropertyBindingError(long __this__nativeId, long other);
/**
* See QPropertyBindingError:: type()const
*/
@QtUninvokable
public final io.qt.core.QPropertyBindingError.@NonNull Type type(){
return io.qt.core.QPropertyBindingError.Type.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int type_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPropertyBindingError(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QPropertyBindingError:: QPropertyBindingError(QPropertyBindingError)
*/
@QtUninvokable
@Override
public QPropertyBindingError clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QPropertyBindingError clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QPropertyBindingError(io.qt.core.QPropertyBindingError.Type, java.lang.String)}
* with description = (String)null
.
*/
public QPropertyBindingError(io.qt.core.QPropertyBindingError.@NonNull Type type) {
this(type, (String)null);
}
/**
* Overloaded function for {@link #assign(io.qt.core.QPropertyBindingError)}.
*/
@QtUninvokable
public final void assign(io.qt.core.QPropertyBindingError.@NonNull Type other) {
assign(new io.qt.core.QPropertyBindingError(other));
}
}