InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/RecipeElementSimple.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.RecipeElementSimple RecipeElementSimple class represents a basic recipe step with actions and conditions. |
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 RecipeElementSimple extends RecipeElement {
private transient long swigCPtr;
private transient boolean swigCMemOwnDerived;
protected RecipeElementSimple(long cPtr, boolean cMemoryOwn) {
super(InscoperJNI.RecipeElementSimple_SWIGSmartPtrUpcast(cPtr), true);
swigCMemOwnDerived = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(RecipeElementSimple obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwnDerived = own;
super.swigSetCMemOwn(own);
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwnDerived) {
swigCMemOwnDerived = false;
InscoperJNI.delete_RecipeElementSimple(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public RecipeElementSimple() {
this(InscoperJNI.new_RecipeElementSimple(), true);
}
public void fromXML(XMLNode xml) throws com.inscoper.api.InscoperException {
InscoperJNI.RecipeElementSimple_fromXML(swigCPtr, this, XMLNode.getCPtr(xml), xml);
}
public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
InscoperJNI.RecipeElementSimple_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
}
public ERecipeElementType getType() {
return ERecipeElementType.swigToEnum(InscoperJNI.RecipeElementSimple_getType(swigCPtr, this));
}
public String getDescription() {
return InscoperJNI.RecipeElementSimple_getDescription(swigCPtr, this);
}
public void setDescription(String description) {
InscoperJNI.RecipeElementSimple_setDescription(swigCPtr, this, description);
}
public SubDeviceId getSubDeviceId() {
return new SubDeviceId(InscoperJNI.RecipeElementSimple_getSubDeviceId(swigCPtr, this), true);
}
public void setSubDeviceId(SubDeviceId subDeviceId) {
InscoperJNI.RecipeElementSimple_setSubDeviceId(swigCPtr, this, SubDeviceId.getCPtr(subDeviceId), subDeviceId);
}
public String getRecipeId() {
return InscoperJNI.RecipeElementSimple_getRecipeId(swigCPtr, this);
}
public void setRecipeId(String recipeId) {
InscoperJNI.RecipeElementSimple_setRecipeId(swigCPtr, this, recipeId);
}
public EFunctionType getFunction() {
return EFunctionType.swigToEnum(InscoperJNI.RecipeElementSimple_getFunction(swigCPtr, this));
}
public void setFunction(EFunctionType function) {
InscoperJNI.RecipeElementSimple_setFunction(swigCPtr, this, function.swigValue());
}
public String getValue() {
return InscoperJNI.RecipeElementSimple_getValue(swigCPtr, this);
}
public void setValue(String value) {
InscoperJNI.RecipeElementSimple_setValue(swigCPtr, this, value);
}
public boolean getImage() {
return InscoperJNI.RecipeElementSimple_getImage(swigCPtr, this);
}
public void setImage(boolean image) {
InscoperJNI.RecipeElementSimple_setImage(swigCPtr, this, image);
}
public ValueConditionVector getValueConditionList() {
return new ValueConditionVector(InscoperJNI.RecipeElementSimple_getValueConditionList(swigCPtr, this), false);
}
public void setValueConditionList(ValueConditionVector valueConditionList) {
InscoperJNI.RecipeElementSimple_setValueConditionList(swigCPtr, this, ValueConditionVector.getCPtr(valueConditionList), valueConditionList);
}
public void addValueCondition(ValueCondition valueCondition) {
InscoperJNI.RecipeElementSimple_addValueCondition(swigCPtr, this, ValueCondition.getCPtr(valueCondition), valueCondition);
}
public String getTagCondition() {
return InscoperJNI.RecipeElementSimple_getTagCondition(swigCPtr, this);
}
public void setTagCondition(String tagCondition) {
InscoperJNI.RecipeElementSimple_setTagCondition(swigCPtr, this, tagCondition);
}
public boolean getOptimisation() {
return InscoperJNI.RecipeElementSimple_getOptimisation(swigCPtr, this);
}
public void setOptimisation(boolean optimisation) {
InscoperJNI.RecipeElementSimple_setOptimisation(swigCPtr, this, optimisation);
}
public boolean hasValueCondition() {
return InscoperJNI.RecipeElementSimple_hasValueCondition(swigCPtr, this);
}
public String getCallId() {
return InscoperJNI.RecipeElementSimple_getCallId(swigCPtr, this);
}
public void setCallId(String callId) {
InscoperJNI.RecipeElementSimple_setCallId(swigCPtr, this, callId);
}
public void addOnCallSubRecipes(RecipeElementSimpleVector elems) {
InscoperJNI.RecipeElementSimple_addOnCallSubRecipes(swigCPtr, this, RecipeElementSimpleVector.getCPtr(elems), elems);
}
public void addOnCallSubRecipe(RecipeElementSimple elem) {
InscoperJNI.RecipeElementSimple_addOnCallSubRecipe(swigCPtr, this, RecipeElementSimple.getCPtr(elem), elem);
}
public StringVector getDependencies() {
return new StringVector(InscoperJNI.RecipeElementSimple_getDependencies(swigCPtr, this), true);
}
public void setRecipeCalled(String id) {
InscoperJNI.RecipeElementSimple_setRecipeCalled(swigCPtr, this, id);
}
public String getRecipeCallCondition() {
return InscoperJNI.RecipeElementSimple_getRecipeCallCondition(swigCPtr, this);
}
public void setRecipeCallCondition(String recipeCallCondition) {
InscoperJNI.RecipeElementSimple_setRecipeCallCondition(swigCPtr, this, recipeCallCondition);
}
public StringBoolMap getRecipeCallState() {
return new StringBoolMap(InscoperJNI.RecipeElementSimple_getRecipeCallState(swigCPtr, this), false);
}
public RecipeElementSimpleVector getRecipeCallSubRecipes() {
return new RecipeElementSimpleVector(InscoperJNI.RecipeElementSimple_getRecipeCallSubRecipes(swigCPtr, this), false);
}
}
Updated on 2026-09-03 at 12:14:19 +0200