public class BooleanFormatter
extends java.lang.Object
BooleanFormatter
is used to format the computed FunctionValue
of a function node.
It allows replacing the "true" and the "false" states by other strings.
Constructor and Description |
---|
BooleanFormatter(java.lang.String replacementValueTrue,
java.lang.String replacementValueFalse)
Creates an instance with two specified replacement values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReplacementValueFalse()
Returns the replacement value for the "false" state.
|
java.lang.String |
getReplacementValueTrue()
Returns the replacement value for the "true" state.
|
void |
setReplacementValueFalse(java.lang.String replacementValueFalse)
Sets the replacement value for the "false" state.
|
void |
setReplacementValueTrue(java.lang.String replacementValueTrue)
Sets the replacement value for the "true" state.
|
public BooleanFormatter(java.lang.String replacementValueTrue, java.lang.String replacementValueFalse)
replacementValueTrue
- a String
used to replace the "true" statereplacementValueFalse
- a String
used to replace the "false" statepublic java.lang.String getReplacementValueTrue()
String
representing the replacement value for the "true" statepublic void setReplacementValueTrue(java.lang.String replacementValueTrue)
replacementValueTrue
- a String
representing the replacement value for the "true" statepublic java.lang.String getReplacementValueFalse()
String
representing the replacement value for the "false" statepublic void setReplacementValueFalse(java.lang.String replacementValueFalse)
replacementValueFalse
- a String
representing the replacement value for the "false" state