Class FHIRPathBooleanValue

    • Method Detail

      • isBooleanValue

        public boolean isBooleanValue()
        Description copied from interface: FHIRPathSystemValue
        Indicates whether this FHIRPathSystemValue is type compatible with FHIRPathBooleanValue
        Returns:
        true if this FHIRPathSystemValue is type compatible with FHIRPathBooleanValue, otherwise false
      • _boolean

        public java.lang.Boolean _boolean()
        The boolean value wrapped by this FHIRPathBooleanValue node
        Returns:
        the boolean value wrapped by this FHIRPathBooleanValue node
      • isTrue

        public boolean isTrue()
        Indicates whether the boolean value wrapped by this FHIRPathBooleanValue node is true
        Returns:
        true if the boolean value wrapped by this FHIRPathBooleanValue node is true, otherwise false
      • isFalse

        public boolean isFalse()
        Indicates whether the boolean value wrapped by this FHIRPathBooleanValue node is false
        Returns:
        true if the boolean value wrapped by this FHIRPathBooleanValue node is false, otherwise false
      • booleanValue

        public static FHIRPathBooleanValue booleanValue​(java.lang.Boolean _boolean)
        Static factory method for creating FHIRPathBooleanValue instances from a Boolean value
        Parameters:
        _boolean - the Boolean value
        Returns:
        a new FHIRPathBooleanValue instance
      • booleanValue

        public static FHIRPathBooleanValue booleanValue​(java.lang.String path,
                                                        java.lang.String name,
                                                        java.lang.Boolean _boolean)
        Static factory method for creating named FHIRPathBooleanValue instances from a Boolean value
        Parameters:
        path - the path of the FHIRPathNode
        name - the name
        _boolean - the Boolean value
        Returns:
        a new named FHIRPathBooleanValue instance
      • builder

        public static FHIRPathBooleanValue.Builder builder​(java.lang.Boolean _boolean)
        Static factory method for creating builder instances from a Boolean value
        Parameters:
        _boolean - the boolean value
        Returns:
        a new builder for building FHIRPathBooleanValue instances
      • or

        public FHIRPathBooleanValue or​(FHIRPathBooleanValue value)
        Perform a logical OR operation between this FHIRPathBooleanValue and the parameter
        Parameters:
        value - the right operand
        Returns:
        the result of the logical OR operation
      • xor

        public FHIRPathBooleanValue xor​(FHIRPathBooleanValue value)
        Perform a logical XOR operation between this FHIRPathBooleanValue and the parameter
        Parameters:
        value - the right operand
        Returns:
        the result of the logical XOR operation
      • and

        public FHIRPathBooleanValue and​(FHIRPathBooleanValue value)
        Perform a logical AND operation between this FHIRPathBooleanValue and the parameter
        Parameters:
        value - the right operand
        Returns:
        the result of the logical AND operation
      • implies

        public FHIRPathBooleanValue implies​(FHIRPathBooleanValue value)
        Perform a logical IMPLIES operation between this FHIRPathBooleanValue and the parameter
        Parameters:
        value - the right operand
        Returns:
        the result of the logical IMPLIES operation
      • not

        public FHIRPathBooleanValue not()
        Perform a logical NOT operation on this FHIRPathBooleanValue
        Parameters:
        value - the right operand
        Returns:
        the result of the logical NOT operation
      • isComparableTo

        public boolean isComparableTo​(FHIRPathNode other)
        Indicates whether this FHIRPathBooleanValue is comparable to the parameter
        Parameters:
        the - other FHIRPathNode
        Returns:
        true if the parameter or its primitive value is a FHIRPathBooleanValue
      • compareTo

        public int compareTo​(FHIRPathNode other)
        Compare the boolean value wrapped by this FHIRPathBooleanValue node to the parameter
        Parameters:
        other - the other FHIRPathNode
        Returns:
        0 if the boolean value wrapped by this FHIRPathBooleanValue node is equal to the parameter; a positive value if this FHIRPathBooleanValue is true and the parameter is false; and a negative value if this FHIRPathBooleanValue is false and the parameter is true
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the boolean value wrapped by this FHIRPathBooleanValue node is equal the parameter (or its primitive value)
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other Object
        Returns:
        true if the boolean value wrapped by this FHIRPathBooleanValue node is equal the parameter (or its primitive value), otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object