Skip to content

InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/ValueCondition.java

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.ValueCondition
ValueCondition class defines a condition based on a sub-device value.

Source code

/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.inscoper.api;
import com.inscoper.api.logging.*;

public class ValueCondition {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

  protected ValueCondition(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ValueCondition obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void swigSetCMemOwn(boolean own) {
    swigCMemOwn = own;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        InscoperJNI.delete_ValueCondition(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public ValueCondition(SubDeviceId subDeviceId, String condition, boolean negated) {
    this(InscoperJNI.new_ValueCondition__SWIG_0(SubDeviceId.getCPtr(subDeviceId), subDeviceId, condition, negated), true);
  }

  public ValueCondition(SubDeviceId subDeviceId, String condition) {
    this(InscoperJNI.new_ValueCondition__SWIG_1(SubDeviceId.getCPtr(subDeviceId), subDeviceId, condition), true);
  }

  public ValueCondition() {
    this(InscoperJNI.new_ValueCondition__SWIG_2(), true);
  }

  public SubDeviceId getSubDeviceId() {
    return new SubDeviceId(InscoperJNI.ValueCondition_getSubDeviceId(swigCPtr, this), true);
  }

  public void setSubDeviceId(SubDeviceId subDeviceId) {
    InscoperJNI.ValueCondition_setSubDeviceId(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
  }

  public String getCondition() {
    return InscoperJNI.ValueCondition_getCondition(swigCPtr, this);
  }

  public void setCondition(String condition) {
    InscoperJNI.ValueCondition_setCondition(swigCPtr, this, condition);
  }

  public boolean isNegated() {
    return InscoperJNI.ValueCondition_isNegated(swigCPtr, this);
  }

  public void setNegated(boolean negated) {
    InscoperJNI.ValueCondition_setNegated(swigCPtr, this, negated);
  }

}

Updated on 2026-09-03 at 12:14:19 +0200