|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.workflow.FlowObject
org.knime.core.node.workflow.FlowVariable
public final class FlowVariable
FlowVariable holding local variables of basic types which can be passed along connections in a workflow.
Nested Class Summary | |
---|---|
static class |
FlowVariable.Type
Type of a variable, supports currently only scalars. |
Field Summary | |
---|---|
static String |
GLOBAL_CONST_ID
reserved prefix for global flow variables. |
Constructor Summary | |
---|---|
FlowVariable(String name,
double valueD)
create new FlowVariable representing a double. |
|
FlowVariable(String name,
double valueD,
boolean isGlobalConstant)
create new FlowVariable representing a double which can either be a global workflow variable or a local one. |
|
FlowVariable(String name,
int valueI)
create new FlowVariable representing an integer. |
|
FlowVariable(String name,
int valueI,
boolean isGlobalConstant)
create new FlowVariable representing an integer which can either be a global workflow variable or a local one. |
|
FlowVariable(String name,
String valueS)
create new FlowVariable representing a string. |
|
FlowVariable(String name,
String valueS,
boolean isGlobalConstant)
create new FlowVariable representing a string which can either be a global workflow variable or a local one. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
double |
getDoubleValue()
|
int |
getIntValue()
|
String |
getName()
|
String |
getStringValue()
|
FlowVariable.Type |
getType()
|
int |
hashCode()
|
boolean |
isGlobalConstant()
|
(package private) static FlowVariable |
load(NodeSettingsRO sub)
Read a flow variable from a settings object. |
(package private) void |
save(NodeSettingsWO settings)
Saves this flow variable to a settings object. |
String |
toString()
|
Methods inherited from class org.knime.core.node.workflow.FlowObject |
---|
clone, cloneAndUnsetOwner, getOwner, setOwner |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String GLOBAL_CONST_ID
Constructor Detail |
---|
public FlowVariable(String name, String valueS)
name
- of the variablevalueS
- string valuepublic FlowVariable(String name, double valueD)
name
- of the variablevalueD
- double valuepublic FlowVariable(String name, int valueI)
name
- of the variablevalueI
- int valueFlowVariable(String name, String valueS, boolean isGlobalConstant)
name
- of the variablevalueS
- string valueisGlobalConstant
- indicating if the variable is global or notFlowVariable(String name, double valueD, boolean isGlobalConstant)
name
- of the variablevalueD
- double valueisGlobalConstant
- indicating if the variable is global or notFlowVariable(String name, int valueI, boolean isGlobalConstant)
name
- of the variablevalueI
- int valueisGlobalConstant
- indicating if the variable is global or notMethod Detail |
---|
public String getName()
public boolean isGlobalConstant()
public FlowVariable.Type getType()
public String getStringValue()
public double getDoubleValue()
public int getIntValue()
void save(NodeSettingsWO settings)
settings
- To save to.static FlowVariable load(NodeSettingsRO sub) throws InvalidSettingsException
save(NodeSettingsWO)
.
sub
- To load from.
FlowVariable
read from the settings object.
InvalidSettingsException
- If that fails for any reason.public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |