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

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

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

import io.qt.*;


/**
 * 

Meta-data about a property

*

Java wrapper for Qt class QMetaProperty

*/ public class QMetaProperty extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QMetaProperty::QMetaProperty()

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

See QMetaProperty::QMetaProperty(QMetaProperty)

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

See QMetaProperty::bindable(QObject*)const

*/ @QtUninvokable public final io.qt.core.@NonNull QUntypedBindable bindable(io.qt.core.@Nullable QObject object){ return bindable_native_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native io.qt.core.QUntypedBindable bindable_native_QObject_ptr_constfct(long __this__nativeId, long object); /** *

See QMetaProperty::enclosingMetaObject()const

*/ @QtUninvokable public final io.qt.core.@Nullable QMetaObject enclosingMetaObject(){ return enclosingMetaObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMetaObject enclosingMetaObject_native_constfct(long __this__nativeId); /** *

See QMetaProperty::enumerator()const

*/ @QtUninvokable public final io.qt.core.@NonNull QMetaEnum enumerator(){ return enumerator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMetaEnum enumerator_native_constfct(long __this__nativeId); /** *

See QMetaProperty::hasNotifySignal()const

*/ @QtUninvokable public final boolean hasNotifySignal(){ return hasNotifySignal_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean hasNotifySignal_native_constfct(long __this__nativeId); /** *

See QMetaProperty::hasStdCppSet()const

*/ @QtUninvokable public final boolean hasStdCppSet(){ return hasStdCppSet_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean hasStdCppSet_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isAlias()const

*/ @QtUninvokable public final boolean isAlias(){ return isAlias_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isAlias_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isBindable()const

*/ @QtUninvokable public final boolean isBindable(){ return isBindable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isBindable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isConstant()const

*/ @QtUninvokable public final boolean isConstant(){ return isConstant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isConstant_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isDesignable()const

*/ @QtUninvokable public final boolean isDesignable(){ return isDesignable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isDesignable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isEnumType()const

*/ @QtUninvokable public final boolean isEnumType(){ return isEnumType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEnumType_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isFinal()const

*/ @QtUninvokable public final boolean isFinal(){ return isFinal_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isFinal_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isFlagType()const

*/ @QtUninvokable public final boolean isFlagType(){ return isFlagType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isFlagType_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isReadable()const

*/ @QtUninvokable public final boolean isReadable(){ return isReadable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isReadable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isRequired()const

*/ @QtUninvokable public final boolean isRequired(){ return isRequired_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isRequired_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isResettable()const

*/ @QtUninvokable public final boolean isResettable(){ return isResettable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isResettable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isScriptable()const

*/ @QtUninvokable public final boolean isScriptable(){ return isScriptable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isScriptable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isStored()const

*/ @QtUninvokable public final boolean isStored(){ return isStored_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isStored_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isUser()const

*/ @QtUninvokable public final boolean isUser(){ return isUser_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isUser_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isValid()const

*/ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QMetaProperty::isWritable()const

*/ @QtUninvokable public final boolean isWritable(){ return isWritable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isWritable_native_constfct(long __this__nativeId); /** *

See QMetaProperty::metaType()const

*/ @QtUninvokable public final io.qt.core.@NonNull QMetaType metaType(){ return metaType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMetaType metaType_native_constfct(long __this__nativeId); /** *

See QMetaProperty::name()const

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

See QMetaProperty::notifySignal()const

*/ @QtUninvokable public final io.qt.core.@NonNull QMetaMethod notifySignal(){ return notifySignal_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMetaMethod notifySignal_native_constfct(long __this__nativeId); /** *

See QMetaProperty::notifySignalIndex()const

*/ @QtUninvokable public final int notifySignalIndex(){ return notifySignalIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int notifySignalIndex_native_constfct(long __this__nativeId); /** *

See operator==(QMetaProperty,QMetaProperty)

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

See QMetaProperty::propertyIndex()const

*/ @QtUninvokable public final int propertyIndex(){ return propertyIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int propertyIndex_native_constfct(long __this__nativeId); /** *

See QMetaProperty::read(const QObject*)const

*/ @QtUninvokable public final java.lang.Object read(io.qt.core.@Nullable QObject obj){ return read_native_const_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(obj)); } @QtUninvokable private native java.lang.Object read_native_const_QObject_ptr_constfct(long __this__nativeId, long obj); /** *

See QMetaProperty::relativePropertyIndex()const

*/ @QtUninvokable public final int relativePropertyIndex(){ return relativePropertyIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int relativePropertyIndex_native_constfct(long __this__nativeId); /** *

See QMetaProperty::reset(QObject*)const

*/ @QtUninvokable public final boolean reset(io.qt.core.@Nullable QObject obj){ return reset_native_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(obj)); } @QtUninvokable private native boolean reset_native_QObject_ptr_constfct(long __this__nativeId, long obj); /** *

See QMetaProperty::revision()const

*/ @QtUninvokable public final int revision(){ return revision_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int revision_native_constfct(long __this__nativeId); /** *

See QMetaProperty::type()const

*/ @Deprecated @QtUninvokable public final io.qt.core.QVariant.@NonNull Type type(){ return io.qt.core.QVariant.Type.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @Deprecated @QtUninvokable private native int type_native_constfct(long __this__nativeId); /** *

See QMetaProperty::typeId()const

*/ @QtUninvokable public final int typeId(){ return typeId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int typeId_native_constfct(long __this__nativeId); /** *

See QMetaProperty::typeName()const

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

See QMetaProperty::userType()const

*/ @QtUninvokable public final int userType(){ return userType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int userType_native_constfct(long __this__nativeId); /** *

See QMetaProperty::write(QObject*,QVariant)const

*/ @QtUninvokable public final boolean write(io.qt.core.@Nullable QObject obj, java.lang.Object value){ return write_native_QObject_ptr_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(obj), value); } @QtUninvokable private native boolean write_native_QObject_ptr_cref_QVariant_constfct(long __this__nativeId, long obj, java.lang.Object value); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMetaProperty(QPrivateConstructor p) { super(p); } /** *

See operator==(QMetaProperty,QMetaProperty)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QMetaProperty) { return equals((io.qt.core.QMetaProperty) other); } return false; } /** * Returns the objects's hash code computed by qHash(QMetaProperty). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** * Returns the property notifier as signal object. */ @QtUninvokable public final QMetaObject.@Nullable AbstractSignal notifySignal(@StrictNonNull QObject object) { QMetaMethod notifySignal = notifySignal(); return notifySignal==null ? null : notifySignal.toSignal(object); } /** *

See QMetaProperty::resetOnGadget(const void *) const

*/ @QtUninvokable public native final boolean resetOnGadget(@StrictNonNull Object object); /** *

See QMetaProperty::readOnGadget(const void *) const

*/ @QtUninvokable public native final Object readOnGadget(@StrictNonNull Object object); /** *

See QMetaProperty::writeOnGadget(void *, const QVariant &) const

*/ @QtUninvokable public native final boolean writeOnGadget(@StrictNonNull Object object, Object value); @Override @QtUninvokable public final @NonNull String toString() { return name(); } private Class classType; /** *

See QMetaProperty::metaType() const

*/ @QtUninvokable public final Class classType(){ if(classType==null) classType = classType_native(); if(classType==null) classType = QMetaType.javaType(this.userType()); return classType; } @QtUninvokable private native final Class classType_native(); /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QShortProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QByteProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QIntProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QLongProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QFloatProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QDoubleProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QBooleanProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QCharProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedShortProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedByteProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedIntProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedLongProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedFloatProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedDoubleProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedBooleanProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedCharProperty property) { return property.owner().metaProperty(property); } /** * Returns corresponding meta property for given QProperty. */ public static @NonNull QMetaProperty fromProperty(QObject.@StrictNonNull QComputedProperty property) { return property.owner().metaProperty(property); } /** *

Creates and returns a copy of this object.

See QMetaProperty::QMetaProperty(QMetaProperty)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy