io.qt.scxml.QScxmlDataModel Maven / Gradle / Ivy
package io.qt.scxml;
import io.qt.*;
/**
* The data model base class for a Qt SCXML state machine
* Java wrapper for Qt class QScxmlDataModel
*/
public abstract class QScxmlDataModel extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcStateMachine;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QScxmlDataModel.class);
@NativeAccess
private static final class ConcreteWrapper extends QScxmlDataModel {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public void evaluateAssignment(int id, boolean @Nullable[] ok){
evaluateAssignment_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native void evaluateAssignment_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public void evaluateForeach(int id, boolean @Nullable[] ok, io.qt.scxml.QScxmlDataModel.@Nullable ForeachLoopBody body){
evaluateForeach_native_qint32_bool_ptr_QScxmlDataModel_ForeachLoopBody_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok, QtJambi_LibraryUtilities.internal.checkedNativeId(body));
}
@QtUninvokable
private native void evaluateForeach_native_qint32_bool_ptr_QScxmlDataModel_ForeachLoopBody_ptr(long __this__nativeId, int id, boolean[] ok, long body);
@Override
@QtUninvokable
public void evaluateInitialization(int id, boolean @Nullable[] ok){
evaluateInitialization_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native void evaluateInitialization_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public boolean evaluateToBool(int id, boolean @Nullable[] ok){
return evaluateToBool_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native boolean evaluateToBool_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public java.lang.@NonNull String evaluateToString(int id, boolean @Nullable[] ok){
return evaluateToString_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native java.lang.String evaluateToString_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public java.lang.Object evaluateToVariant(int id, boolean @Nullable[] ok){
return evaluateToVariant_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native java.lang.Object evaluateToVariant_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public void evaluateToVoid(int id, boolean @Nullable[] ok){
evaluateToVoid_native_qint32_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), id, ok);
}
@QtUninvokable
private native void evaluateToVoid_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
@Override
@QtUninvokable
public boolean hasScxmlProperty(java.lang.@NonNull String name){
return hasScxmlProperty_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native boolean hasScxmlProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
@Override
@QtUninvokable
public java.lang.Object scxmlProperty(java.lang.@NonNull String name){
return scxmlProperty_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native java.lang.Object scxmlProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
@Override
@QtUninvokable
public void setScxmlEvent(io.qt.scxml.@NonNull QScxmlEvent event){
setScxmlEvent_native_cref_QScxmlEvent(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void setScxmlEvent_native_cref_QScxmlEvent(long __this__nativeId, long event);
@Override
@QtUninvokable
public boolean setScxmlProperty(java.lang.@NonNull String name, java.lang.Object value, java.lang.@NonNull String context){
return setScxmlProperty_native_cref_QString_cref_QVariant_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, value, context);
}
@QtUninvokable
private native boolean setScxmlProperty_native_cref_QString_cref_QVariant_cref_QString(long __this__nativeId, java.lang.String name, java.lang.Object value, java.lang.String context);
@Override
public boolean setup(java.util.@NonNull Map initialDataValues){
return setup_native_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), initialDataValues);
}
private native boolean setup_native_cref_QMap(long __this__nativeId, java.util.Map initialDataValues);
}
/**
* Represents a function to be executed on each iteration of an SCXML foreach loop
* Java wrapper for Qt class QScxmlDataModel::ForeachLoopBody
*/
public static interface ForeachLoopBody extends QtObjectInterface
{
/**
* @hidden
* Implementor class for interface {@link io.qt.scxml.QScxmlDataModel.ForeachLoopBody}
*/
public static abstract class Impl extends QtObject
implements io.qt.scxml.QScxmlDataModel.ForeachLoopBody
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QScxmlDataModel.ForeachLoopBody.Impl {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public boolean run(){
return run_native_bool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean run_native_bool_ptr(long __this__nativeId);
}
/**
* See QScxmlDataModel::ForeachLoopBody:: ForeachLoopBody()
*/
public Impl(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(ForeachLoopBody instance);
/**
* See QScxmlDataModel::ForeachLoopBody:: run(bool*)
*/
@QtUninvokable
public abstract boolean run();
private native static boolean run_native_bool_ptr(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
}
/**
* See QScxmlDataModel::ForeachLoopBody:: run(bool*)
*/
@QtUninvokable
public boolean run();
}
/**
* See QScxmlDataModel:: stateMachineChanged(QScxmlStateMachine*)
*/
@QtPropertyNotify(name="stateMachine")
public final @NonNull Signal1 stateMachineChanged = new Signal1<>();
/**
* See QScxmlDataModel:: QScxmlDataModel(QObject*)
* @param parent
*/
public QScxmlDataModel(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QScxmlDataModel instance, io.qt.core.QObject parent);
/**
* See QScxmlDataModel:: bindableStateMachine()
* @return
*/
@QtPropertyBindable(name="stateMachine")
@QtUninvokable
public final io.qt.core.@NonNull QBindable bindableStateMachine(){
return bindableStateMachine_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QBindable bindableStateMachine_native(long __this__nativeId);
/**
* See QScxmlDataModel:: setStateMachine(QScxmlStateMachine*)
* @param stateMachine
*/
@QtPropertyWriter(name="stateMachine")
@QtUninvokable
public final void setStateMachine(io.qt.scxml.@Nullable QScxmlStateMachine stateMachine){
InternalAccess.NativeIdInfo __stateMachine__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(stateMachine);
setStateMachine_native_QScxmlStateMachine_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __stateMachine__NativeIdInfo.nativeId());
if (__stateMachine__NativeIdInfo.needsReferenceCounting()) {
__rcStateMachine = stateMachine;
}else{
__rcStateMachine = null;
}
}
@QtUninvokable
private native void setStateMachine_native_QScxmlStateMachine_ptr(long __this__nativeId, long stateMachine);
/**
* See QScxmlDataModel:: stateMachine()const
* @return
*/
@QtPropertyReader(name="stateMachine")
@QtUninvokable
public final io.qt.scxml.@Nullable QScxmlStateMachine stateMachine(){
return stateMachine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.scxml.QScxmlStateMachine stateMachine_native_constfct(long __this__nativeId);
/**
* See QScxmlDataModel:: evaluateAssignment(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
*/
@QtUninvokable
public abstract void evaluateAssignment(int id, boolean @Nullable[] ok);
@QtUninvokable
private native void evaluateAssignment_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
*
* @param id
* @param ok
* @param body
*/
@QtUninvokable
public abstract void evaluateForeach(int id, boolean @Nullable[] ok, io.qt.scxml.QScxmlDataModel.@Nullable ForeachLoopBody body);
@QtUninvokable
private native void evaluateForeach_native_qint32_bool_ptr_QScxmlDataModel_ForeachLoopBody_ptr(long __this__nativeId, int id, boolean[] ok, long body);
/**
* See QScxmlDataModel:: evaluateInitialization(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
*/
@QtUninvokable
public abstract void evaluateInitialization(int id, boolean @Nullable[] ok);
@QtUninvokable
private native void evaluateInitialization_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
* See QScxmlDataModel:: evaluateToBool(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
* @return
*/
@QtUninvokable
public abstract boolean evaluateToBool(int id, boolean @Nullable[] ok);
@QtUninvokable
private native boolean evaluateToBool_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
* See QScxmlDataModel:: evaluateToString(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
* @return
*/
@QtUninvokable
public abstract java.lang.@NonNull String evaluateToString(int id, boolean @Nullable[] ok);
@QtUninvokable
private native java.lang.String evaluateToString_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
* See QScxmlDataModel:: evaluateToVariant(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
* @return
*/
@QtUninvokable
public abstract java.lang.Object evaluateToVariant(int id, boolean @Nullable[] ok);
@QtUninvokable
private native java.lang.Object evaluateToVariant_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
* See QScxmlDataModel:: evaluateToVoid(QScxmlExecutableContent::EvaluatorId, bool*)
* @param id
* @param ok
*/
@QtUninvokable
public abstract void evaluateToVoid(int id, boolean @Nullable[] ok);
@QtUninvokable
private native void evaluateToVoid_native_qint32_bool_ptr(long __this__nativeId, int id, boolean[] ok);
/**
* See QScxmlDataModel:: hasScxmlProperty(QString)const
* @param name
* @return
*/
@QtUninvokable
public abstract boolean hasScxmlProperty(java.lang.@NonNull String name);
@QtUninvokable
private native boolean hasScxmlProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QScxmlDataModel:: scxmlProperty(QString)const
* @param name
* @return
*/
@QtUninvokable
public abstract java.lang.Object scxmlProperty(java.lang.@NonNull String name);
@QtUninvokable
private native java.lang.Object scxmlProperty_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QScxmlDataModel:: setScxmlEvent(QScxmlEvent)
* @param event
*/
@QtUninvokable
public abstract void setScxmlEvent(io.qt.scxml.@NonNull QScxmlEvent event);
@QtUninvokable
private native void setScxmlEvent_native_cref_QScxmlEvent(long __this__nativeId, long event);
/**
* See QScxmlDataModel:: setScxmlProperty(QString, QVariant, QString)
* @param name
* @param value
* @param context
* @return
*/
@QtUninvokable
public abstract boolean setScxmlProperty(java.lang.@NonNull String name, java.lang.Object value, java.lang.@NonNull String context);
@QtUninvokable
private native boolean setScxmlProperty_native_cref_QString_cref_QVariant_cref_QString(long __this__nativeId, java.lang.String name, java.lang.Object value, java.lang.String context);
/**
* See QScxmlDataModel:: setup(QVariantMap)
* @param initialDataValues
* @return
*/
public abstract boolean setup(java.util.@NonNull Map initialDataValues);
private native boolean setup_native_cref_QMap(long __this__nativeId, java.util.Map initialDataValues);
/**
* See QScxmlDataModel:: createScxmlDataModel(QString)
* @param pluginKey
* @return
*/
public native static io.qt.scxml.@Nullable QScxmlDataModel createScxmlDataModel(java.lang.@NonNull String pluginKey);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScxmlDataModel(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QScxmlDataModel(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QScxmlDataModel instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QScxmlDataModel(io.qt.core.QObject)}
* with parent = null
.
*/
public QScxmlDataModel() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #stateMachine()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.scxml.@Nullable QScxmlStateMachine getStateMachine() {
return stateMachine();
}
}