Class FHIRPathStringValue

    • Method Detail

      • isStringValue

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

        public java.lang.String string()
        The String value wrapped by this FHIRPathStringValue
        Returns:
        the String value wrapped by this FHIRPathStringValue
      • stringValue

        public static FHIRPathStringValue stringValue​(java.lang.String string)
        Static factory method for creating FHIRPathStringValue instances from a String value
        Parameters:
        string - the String value
        Returns:
        a new FHIRPathStringValue instance
      • stringValue

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

        public static FHIRPathStringValue.Builder builder​(java.lang.String string)
        Static factory method for creating builder instances from a String value
        Parameters:
        string - the String value
        Returns:
        a new builder for building FHIRPathStringValue instances
      • concat

        public FHIRPathStringValue concat​(FHIRPathStringValue value)
        Concatenate the String value with the String value wrapped by another FHIRPathStringValue
        Parameters:
        value - the other FHIRPathStringValue
        Returns:
        the result of concatenation between this FHIRPathStringValue and the parameter
      • startsWith

        public boolean startsWith​(FHIRPathStringValue prefix)
        Indicates whether this FHIRPathStringValue starts with the prefix in the parameter
        Parameters:
        prefix - the prefix
        Returns:
        true if this FHIRPathStringValue starts with the parameter, otherwise false
      • endsWith

        public boolean endsWith​(FHIRPathStringValue suffix)
        Indicates whether this FHIRPathStringValue ends with the suffix in the parameter
        Parameters:
        suffix - the suffix
        Returns:
        true if this FHIRPathStringValue ends with the parameter, otherwise false
      • replace

        public FHIRPathStringValue replace​(FHIRPathStringValue pattern,
                                           FHIRPathStringValue substitution)
        Replace occurrences of pattern in this FHIRPathStringValue with substitution
        Parameters:
        pattern - the pattern
        substitution - the substitution
        Returns:
        the result of replacing occurrences of pattern found in this FHIRPathStringValue with substitution
      • matches

        public boolean matches​(FHIRPathStringValue regex)
        Indicates whether the String value wrapped by this FHIRPathStringValue matches the regex in the parameter
        Parameters:
        regex - the regex
        Returns:
        true if the String value wrapped by this FHIRPathStringValue matches the regex in the parameter
      • replaceMatches

        public FHIRPathStringValue replaceMatches​(FHIRPathStringValue regex,
                                                  FHIRPathStringValue substitution)
        Replace matches of regex in this FHIRPathStringValue with substitution
        Parameters:
        regex - the regex
        substitution - the substitution
        Returns:
        the result of replacing matches of regex in this FHIRPathStringValue with substitution
      • substring

        public FHIRPathStringValue substring​(int start)
        Returns the part of this FHIRPathStringValue starting at position start
        Parameters:
        start - the start
        Returns:
        the part of this FHIRPathStringValue starting at position start
      • substring

        public FHIRPathStringValue substring​(int start,
                                             int length)
        Returns the part of this FHIRPathStringValue starting at position start up to length number of characters
        Parameters:
        start - the start
        length - the length
        Returns:
        the part of this FHIRPathStringValue starting at position start up to length number of characters
      • contains

        public boolean contains​(FHIRPathStringValue substring)
        Indicates whether this FHIRPathStringValue contains the substring in the parameter
        Parameters:
        substring - the substring
        Returns:
        true if this FHIRPathStringValue contains the substring in the parameter, otherwise false
      • length

        public int length()
        The length of this FHIRPathStringValue
        Returns:
        the length of this FHIRPathStringValue
      • lower

        public FHIRPathStringValue lower()
        Convert the characters in this FHIRPathStringValue to lower case
        Returns:
        the result of converting the characters in this FHIRPathString to lower case
      • upper

        public FHIRPathStringValue upper()
        Convert the characters in this FHIRPathStringValue to upper case
        Returns:
        the result of converting the characters in this FHIRPathString to upper case
      • isComparableTo

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

        public int compareTo​(FHIRPathNode other)
        Compare the String value wrapped by this FHIRPathStringValue node to the parameter
        Parameters:
        other - the other FHIRPathNode
        Returns:
        0 if the String value wrapped by this FHIRPathStringValue node is equal to the parameter; a positive value if this FHIRPathStringValue if the first non-matching character is greater than the character at the same index in the parameter; a positive value if this FHIRPathStringValue if the first non-matching character is less than the character at the same index in the parameter
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether the String value wrapped by this FHIRPathStringValue 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 String value wrapped by this FHIRPathStringValue 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