Class ToBoolean

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Direct Known Subclasses:
ToBooleanEvaluator

public class ToBoolean extends UnaryExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The ToBoolean operator converts the value of its argument to a Boolean value. The operator accepts 'true', 't', 'yes', 'y', and '1' as string representations of true, and 'false', 'f', 'no', 'n', and '0' as string representations of false, ignoring case. If the input is an Integer or Long, the result is true if the integer is 1, false if the integer is 0. If the input is a Decimal, the result is true if the decimal is 1.0, false if the decimal is 0.0. If the input cannot be interpreted as a valid Boolean value, the result is null. If the argument is null the result is null.

Java class for ToBoolean complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ToBoolean">
   <complexContent>
     <extension base="{urn:hl7-org:elm:r1}UnaryExpression">
     </extension>
   </complexContent>
 </complexType>