io.qt.serialbus.QModbusDeviceIdentification Maven / Gradle / Ivy
Show all versions of qtjambi-serialbus Show documentation
package io.qt.serialbus;
import io.qt.*;
/**
* Container class representing the physical and functional description of a Modbus server
* Java wrapper for Qt class QModbusDeviceIdentification
*/
public class QModbusDeviceIdentification extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QModbusDeviceIdentification::ConformityLevel
*/
public enum ConformityLevel implements QtEnumerator {
/**
* Representing QModbusDeviceIdentification:: BasicConformityLevel
*/
BasicConformityLevel(1),
/**
* Representing QModbusDeviceIdentification:: RegularConformityLevel
*/
RegularConformityLevel(2),
/**
* Representing QModbusDeviceIdentification:: ExtendedConformityLevel
*/
ExtendedConformityLevel(3),
/**
* Representing QModbusDeviceIdentification:: BasicIndividualConformityLevel
*/
BasicIndividualConformityLevel(129),
/**
* Representing QModbusDeviceIdentification:: RegularIndividualConformityLevel
*/
RegularIndividualConformityLevel(130),
/**
* Representing QModbusDeviceIdentification:: ExtendedIndividualConformityLevel
*/
ExtendedIndividualConformityLevel(131);
static {
QtJambi_LibraryUtilities.initialize();
}
private ConformityLevel(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ConformityLevel resolve(int value) {
switch (value) {
case 1: return BasicConformityLevel;
case 2: return RegularConformityLevel;
case 3: return ExtendedConformityLevel;
case 129: return BasicIndividualConformityLevel;
case 130: return RegularIndividualConformityLevel;
case 131: return ExtendedIndividualConformityLevel;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QModbusDeviceIdentification::ObjectId
*/
public enum ObjectId implements QtEnumerator {
/**
* Representing QModbusDeviceIdentification:: VendorNameObjectId
*/
VendorNameObjectId(0),
/**
* Representing QModbusDeviceIdentification:: ProductCodeObjectId
*/
ProductCodeObjectId(1),
/**
* Representing QModbusDeviceIdentification:: MajorMinorRevisionObjectId
*/
MajorMinorRevisionObjectId(2),
/**
* Representing QModbusDeviceIdentification:: VendorUrlObjectId
*/
VendorUrlObjectId(3),
/**
* Representing QModbusDeviceIdentification:: ProductNameObjectId
*/
ProductNameObjectId(4),
/**
* Representing QModbusDeviceIdentification:: ModelNameObjectId
*/
ModelNameObjectId(5),
/**
* Representing QModbusDeviceIdentification:: UserApplicationNameObjectId
*/
UserApplicationNameObjectId(6),
/**
* Representing QModbusDeviceIdentification:: ReservedObjectId
*/
ReservedObjectId(7),
/**
* Representing QModbusDeviceIdentification:: ProductDependentObjectId
*/
ProductDependentObjectId(128),
/**
* Representing QModbusDeviceIdentification:: UndefinedObjectId
*/
UndefinedObjectId(256);
static {
QtJambi_LibraryUtilities.initialize();
}
private ObjectId(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ObjectId resolve(int value) {
switch (value) {
case 0: return VendorNameObjectId;
case 1: return ProductCodeObjectId;
case 2: return MajorMinorRevisionObjectId;
case 3: return VendorUrlObjectId;
case 4: return ProductNameObjectId;
case 5: return ModelNameObjectId;
case 6: return UserApplicationNameObjectId;
case 7: return ReservedObjectId;
case 128: return ProductDependentObjectId;
case 256: return UndefinedObjectId;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QModbusDeviceIdentification::ReadDeviceIdCode
*/
public enum ReadDeviceIdCode implements QtEnumerator {
/**
* Representing QModbusDeviceIdentification:: BasicReadDeviceIdCode
*/
BasicReadDeviceIdCode(1),
/**
* Representing QModbusDeviceIdentification:: RegularReadDeviceIdCode
*/
RegularReadDeviceIdCode(2),
/**
* Representing QModbusDeviceIdentification:: ExtendedReadDeviceIdCode
*/
ExtendedReadDeviceIdCode(3),
/**
* Representing QModbusDeviceIdentification:: IndividualReadDeviceIdCode
*/
IndividualReadDeviceIdCode(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private ReadDeviceIdCode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ReadDeviceIdCode resolve(int value) {
switch (value) {
case 1: return BasicReadDeviceIdCode;
case 2: return RegularReadDeviceIdCode;
case 3: return ExtendedReadDeviceIdCode;
case 4: return IndividualReadDeviceIdCode;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QModbusDeviceIdentification:: QModbusDeviceIdentification()
*/
public QModbusDeviceIdentification(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QModbusDeviceIdentification instance);
/**
* See QModbusDeviceIdentification:: QModbusDeviceIdentification(QModbusDeviceIdentification)
*/
public QModbusDeviceIdentification(io.qt.serialbus.@NonNull QModbusDeviceIdentification other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QModbusDeviceIdentification instance, io.qt.serialbus.QModbusDeviceIdentification other);
/**
* See QModbusDeviceIdentification:: conformityLevel()const
*/
@QtUninvokable
public final io.qt.serialbus.QModbusDeviceIdentification.@NonNull ConformityLevel conformityLevel(){
return io.qt.serialbus.QModbusDeviceIdentification.ConformityLevel.resolve(conformityLevel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int conformityLevel_native_constfct(long __this__nativeId);
/**
* See QModbusDeviceIdentification:: contains(uint)const
*/
@QtUninvokable
public final boolean contains(int objectId){
return contains_native_uint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), objectId);
}
@QtUninvokable
private native boolean contains_native_uint_constfct(long __this__nativeId, int objectId);
/**
* See QModbusDeviceIdentification:: insert(uint, QByteArray)
*/
@QtUninvokable
public final boolean insert(int objectId, io.qt.core.@NonNull QByteArray data){
return insert_native_uint_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), objectId, QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native boolean insert_native_uint_cref_QByteArray(long __this__nativeId, int objectId, long data);
/**
* See QModbusDeviceIdentification:: 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 QModbusDeviceIdentification:: objectIds()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList objectIds(){
return objectIds_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList objectIds_native_constfct(long __this__nativeId);
/**
* See operator==(QModbusDeviceIdentification, QModbusDeviceIdentification)
*/
@QtUninvokable
public final boolean equals(io.qt.serialbus.@NonNull QModbusDeviceIdentification value2){
return equals_native_cref_QModbusDeviceIdentification(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2));
}
@QtUninvokable
private native boolean equals_native_cref_QModbusDeviceIdentification(long __this__nativeId, long value2);
/**
* See QModbusDeviceIdentification:: remove(uint)
*/
@QtUninvokable
public final void remove(int objectId){
remove_native_uint(QtJambi_LibraryUtilities.internal.nativeId(this), objectId);
}
@QtUninvokable
private native void remove_native_uint(long __this__nativeId, int objectId);
/**
* See QModbusDeviceIdentification:: setConformityLevel(QModbusDeviceIdentification::ConformityLevel)
*/
@QtUninvokable
public final void setConformityLevel(io.qt.serialbus.QModbusDeviceIdentification.@NonNull ConformityLevel level){
setConformityLevel_native_QModbusDeviceIdentification_ConformityLevel(QtJambi_LibraryUtilities.internal.nativeId(this), level.value());
}
@QtUninvokable
private native void setConformityLevel_native_QModbusDeviceIdentification_ConformityLevel(long __this__nativeId, int level);
/**
* See QModbusDeviceIdentification:: value(uint)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray value(int objectId){
return value_native_uint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), objectId);
}
@QtUninvokable
private native io.qt.core.QByteArray value_native_uint_constfct(long __this__nativeId, int objectId);
/**
* See QModbusDeviceIdentification:: fromByteArray(QByteArray)
*/
public static io.qt.serialbus.@NonNull QModbusDeviceIdentification fromByteArray(io.qt.core.@NonNull QByteArray ba){
return fromByteArray_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
private native static io.qt.serialbus.QModbusDeviceIdentification fromByteArray_native_cref_QByteArray(long ba);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QModbusDeviceIdentification(QPrivateConstructor p) { super(p); }
/**
* See operator==(QModbusDeviceIdentification, QModbusDeviceIdentification)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.serialbus.QModbusDeviceIdentification) {
return equals((io.qt.serialbus.QModbusDeviceIdentification) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QModbusDeviceIdentification)
.
*/
@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 QModbusDeviceIdentification:: QModbusDeviceIdentification(QModbusDeviceIdentification)
*/
@QtUninvokable
@Override
public QModbusDeviceIdentification clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QModbusDeviceIdentification clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #insert(int, io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final boolean insert(int objectId, byte @NonNull[] data) {
return insert(objectId, new io.qt.core.QByteArray(data));
}
/**
* Overloaded function for {@link #fromByteArray(io.qt.core.QByteArray)}.
*/
public static io.qt.serialbus.@NonNull QModbusDeviceIdentification fromByteArray(byte @NonNull[] ba) {
return fromByteArray(new io.qt.core.QByteArray(ba));
}
}