public class BindingTypeValidator extends TypeValueBuilder
Constructor and Description |
---|
BindingTypeValidator(java.util.List<VariableRow> varList,
java.lang.String dataTypeName)
The constructor.
|
BindingTypeValidator(java.util.List<VariableRow> varList,
java.lang.String dataTypeName,
java.lang.String taskDecompositionID)
This variant is used to re-validate mappings when a variable's data type is changed
|
BindingTypeValidator(YNet net)
This variant is used to validate split predicates
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInitialised() |
void |
setDataType(java.lang.String dataType)
Sets the target data type to validate against.
|
void |
setMultiInstance()
Called from InputBindingDialog to set a flag for MI input variables so that
type evaluations on input bindings can target the child element instead of the
parent element (as defined in the expression)
|
java.util.List<java.lang.String> |
validate(java.lang.String binding)
Validates that the binding matches the data type of the target variable
|
boolean |
waitForInitialisation(int timeLimit) |
assembleMap, getDataDocument, getDataHandler, getDataXNode, getFieldList, getNet, getSpecHandler
public BindingTypeValidator(java.util.List<VariableRow> varList, java.lang.String dataTypeName)
varList
- the list of net-level variables if validating a task input
binding, or the list of task-level output variables if
validating a task output bindingdataTypeName
- the name of the target data type (the data type of the
task-level variable for input bindings, or the data type
of the net-level variable for output bindings)public BindingTypeValidator(YNet net)
net
- the selected netpublic BindingTypeValidator(java.util.List<VariableRow> varList, java.lang.String dataTypeName, java.lang.String taskDecompositionID)
varList
- the list of net-level variables if validating a task input
binding, or the combined list of net-level & task-level output
variables if validating a task output bindingdataTypeName
- the name of the target data type (the data type of the
task-level variable for input bindings, or the data type
of the net-level variable for output bindings)taskDecompositionID
- the task decomposition id for task output validationspublic void setDataType(java.lang.String dataType)
dataType
- the data type of the variable being bound topublic void setMultiInstance()
public java.util.List<java.lang.String> validate(java.lang.String binding)
binding
- the binding to validatepublic boolean isInitialised()
public boolean waitForInitialisation(int timeLimit)