Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.ParamDescription
ParamDescription class provides parameter information coming from drivers.

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 ParamDescription {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

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

  protected static long getCPtr(ParamDescription 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_ParamDescription(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public int getTag() {
    return InscoperJNI.ParamDescription_getTag(swigCPtr, this);
  }

  public String getName() {
    return InscoperJNI.ParamDescription_getName(swigCPtr, this);
  }

  public String getDescription() {
    return InscoperJNI.ParamDescription_getDescription(swigCPtr, this);
  }

  public EParamType getType() {
    return EParamType.swigToEnum(InscoperJNI.ParamDescription_getType(swigCPtr, this));
  }

  public Constraint getConstraint() {
    long cPtr = InscoperJNI.ParamDescription_getConstraint(swigCPtr, this);
    return (cPtr == 0) ? null : new Constraint(cPtr, true);
  }

}

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