Package com.uc4.api.objects
Class CompositeVariable
java.lang.Object
com.uc4.api.objects.CompositeVariable
This class represents the panel "Variable" of an VARA Object with the source "Composite".
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum for the operation.Returns the result format.Returns the name of the first variable.Returns the name of the first variable.voidsetOperation(CompositeVariable.Operation operation) Sets the operation which is used for variable 1 and variable 2.voidsetResultFormat(String resultFormat) Sets the result format.voidsetVariable1(UC4ObjectName variable1) Sets the name of the first variable.voidsetVariable2(UC4ObjectName variable2) Sets the name of the first variable.protected void
- 
Constructor Details- 
CompositeVariableprotected CompositeVariable(com.uc4.util.XMLDocument doc) 
 
- 
- 
Method Details- 
store
- 
getVariable1Returns the name of the first variable. If not set an emptyUC4ObjectNameinstance is returned.- Returns:
- Name of the first variable, never null
 
- 
setVariable1Sets the name of the first variable. Ifnullis passed as argument the field for variable 1 is not set.- Parameters:
- variable1- Variable name
 
- 
getVariable2Returns the name of the first variable. If not set an emptyUC4ObjectNameinstance is returned.- Returns:
- Name of the second variable, never null
 
- 
setVariable2Sets the name of the first variable. Ifnullis passed as argument the field for variable 2 is not set.- Parameters:
- variable2- Variable name
 
- 
getResultFormatReturns the result format.- Returns:
- Result format
 
- 
setResultFormatSets the result format. The maximum length is 1024 characters.- Parameters:
- resultFormat- String which contains the result format
 
- 
getOperationReturns the enum for the operation.- Returns:
- Operation
 
- 
setOperationSets the operation which is used for variable 1 and variable 2. ThrowsIllegalArgumentExceptionif operation is null.- Parameters:
- operation- Enum constant
 
 
-