public class FieldIf extends Field
Compares the values designated by the expressions getLeftExpression() / setLeftExpression(java.lang.String) and getRightExpression() / setRightExpression(java.lang.String) in comparison using the operator designated by getComparisonOperator() / setComparisonOperator(java.lang.String).
A field in the following format will be used as a mail merge source: { IF 0 = 0 "{PatientsNameFML}" "" \* MERGEFORMAT }
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWorkAsMergeField() |
int |
evaluateCondition()
Evaluates the condition.
|
java.lang.String |
getComparisonOperator()
Gets the comparison operator.
|
java.lang.String |
getFalseText()
Gets the text displayed if the comparison expression is false.
|
java.lang.String |
getLeftExpression()
Gets the left part of the comparison expression.
|
java.lang.String |
getMergeFieldName() |
java.lang.String |
getRightExpression()
Gets the right part of the comparison expression.
|
java.lang.String |
getTrueText()
Gets the text displayed if the comparison expression is true.
|
boolean |
isMergeValueRequired() |
void |
setComparisonOperator(java.lang.String value)
Sets the comparison operator.
|
void |
setFalseText(java.lang.String value)
Sets the text displayed if the comparison expression is false.
|
void |
setLeftExpression(java.lang.String value)
Sets the left part of the comparison expression.
|
void |
setRightExpression(java.lang.String value)
Sets the right part of the comparison expression.
|
void |
setTrueText(java.lang.String value)
Sets the text displayed if the comparison expression is true.
|
getDisplayResult, getEnd, getFieldCode, getFieldCode, getFormat, getLocaleId, getResult, getSeparator, getStart, getType, isDirty, isDirty, isLocked, isLocked, needStoreOldResultNodes, remove, setLocaleId, setResult, unlink, update, updatepublic java.lang.String getMergeFieldName()
public boolean canWorkAsMergeField()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isMergeValueRequired()
public java.lang.String getLeftExpression()
public void setLeftExpression(java.lang.String value)
throws java.lang.Exception
value - The left part of the comparison expression.java.lang.Exceptionpublic java.lang.String getComparisonOperator()
public void setComparisonOperator(java.lang.String value)
throws java.lang.Exception
value - The comparison operator.java.lang.Exceptionpublic java.lang.String getRightExpression()
public void setRightExpression(java.lang.String value)
throws java.lang.Exception
value - The right part of the comparison expression.java.lang.Exceptionpublic java.lang.String getTrueText()
public void setTrueText(java.lang.String value)
throws java.lang.Exception
value - The text displayed if the comparison expression is true.java.lang.Exceptionpublic java.lang.String getFalseText()
public void setFalseText(java.lang.String value)
throws java.lang.Exception
value - The text displayed if the comparison expression is false.java.lang.Exceptionpublic int evaluateCondition()
throws java.lang.Exception
FieldIfComparisonResult value that represents the result of the condition evaluation. The returned value is one of FieldIfComparisonResult constants.java.lang.Exception