Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.SubDeviceConfig
SubDeviceConfig class provides required information for sub-device configuration.

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

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

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

  public SubDeviceConfig() {
    this(InscoperJNI.new_SubDeviceConfig(), true);
  }

  public void fromXML(XMLNode subDeviceNode) throws com.inscoper.api.InscoperException {
    InscoperJNI.SubDeviceConfig_fromXML(swigCPtr, this, XMLNode.getCPtr(subDeviceNode), subDeviceNode);
  }

  public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
    InscoperJNI.SubDeviceConfig_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
  }

  public String getId() {
    return InscoperJNI.SubDeviceConfig_getId(swigCPtr, this);
  }

  public void setId(String id) {
    InscoperJNI.SubDeviceConfig_setId(swigCPtr, this, id);
  }

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

  public void setTag(int tag) {
    InscoperJNI.SubDeviceConfig_setTag(swigCPtr, this, tag);
  }

  public com.inscoper.nbo.ENBOType getNBOType() {
    return com.inscoper.nbo.ENBOType.swigToEnum(InscoperJNI.SubDeviceConfig_getNBOType(swigCPtr, this));
}

  public boolean hasNBOType() {
    return InscoperJNI.SubDeviceConfig_hasNBOType(swigCPtr, this);
  }

  public void setNBOType(com.inscoper.nbo.ENBOType nboType) {
    InscoperJNI.SubDeviceConfig_setNBOType(swigCPtr, this, nboType.swigValue());
  }

  public void unsetNBOType() {
    InscoperJNI.SubDeviceConfig_unsetNBOType(swigCPtr, this);
  }

  public boolean isPostInit() {
    return InscoperJNI.SubDeviceConfig_isPostInit(swigCPtr, this);
  }

  public void setPostInit(boolean postInit) {
    InscoperJNI.SubDeviceConfig_setPostInit(swigCPtr, this, postInit);
  }

  public String getRecipeId() {
    return InscoperJNI.SubDeviceConfig_getRecipeId(swigCPtr, this);
  }

  public void setRecipeId(String recipeId) {
    InscoperJNI.SubDeviceConfig_setRecipeId(swigCPtr, this, recipeId);
  }

  public ParamConfigVector getParams() {
    return new ParamConfigVector(InscoperJNI.SubDeviceConfig_getParams(swigCPtr, this), false);
  }

  public ParamConfig getParam(int tag) {
    long cPtr = InscoperJNI.SubDeviceConfig_getParam(swigCPtr, this, tag);
    return (cPtr == 0) ? null : new ParamConfig(cPtr, true);
  }

  public void setParams(ParamConfigVector params) {
    InscoperJNI.SubDeviceConfig_setParams(swigCPtr, this, ParamConfigVector.getCPtr(params), params);
  }

  public void addParam(ParamConfig param) {
    InscoperJNI.SubDeviceConfig_addParam(swigCPtr, this, ParamConfig.getCPtr(param), param);
  }

  public ESubDeviceLabelVector getLabelList() {
    return new ESubDeviceLabelVector(InscoperJNI.SubDeviceConfig_getLabelList(swigCPtr, this), false);
  }

}

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