|
||||||||||
| 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.Scope
Scope of variable. |
static class |
FlowVariable.Type
Type of a variable, supports currently only scalars. |
| Field Summary | |
|---|---|
static String |
GLOBAL_CONST_ID
Deprecated. Use FlowVariable.Scope.getPrefix() of enum constant
FlowVariable.Scope.Global instead. |
| Constructor Summary | |
|---|---|
FlowVariable(String name,
double valueD)
create new FlowVariable representing a double. |
|
FlowVariable(String name,
double valueD,
FlowVariable.Scope scope)
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,
FlowVariable.Scope scope)
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,
FlowVariable.Scope scope)
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()
|
FlowVariable.Scope |
getScope()
|
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 |
|---|
@Deprecated public static final String GLOBAL_CONST_ID
FlowVariable.Scope.getPrefix() of enum constant
FlowVariable.Scope.Global instead.
| Constructor Detail |
|---|
public FlowVariable(String name,
String valueS)
name - of the variablevalueS - string value
public FlowVariable(String name,
double valueD)
name - of the variablevalueD - double value
public FlowVariable(String name,
int valueI)
name - of the variablevalueI - int value
FlowVariable(String name,
String valueS,
FlowVariable.Scope scope)
name - of the variablevalueS - string valuescope - Scope of variable
FlowVariable(String name,
double valueD,
FlowVariable.Scope scope)
name - of the variablevalueD - double valuescope - Scope of variable
FlowVariable(String name,
int valueI,
FlowVariable.Scope scope)
name - of the variablevalueI - int valuescope - Scope of variable| Method Detail |
|---|
public String getName()
public boolean isGlobalConstant()
public FlowVariable.Scope getScope()
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 org.knime.core.node.InvalidSettingsException
save(NodeSettingsWO).
sub - To load from.
FlowVariable read from the settings object.
org.knime.core.node.InvalidSettingsException - If that fails for any reason.public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||