Class StringLiteral
java.lang.Object
au.csiro.pathling.fhirpath.literal.StringLiteral
Utility class for handling FHIRPath string literal escaping and unescaping.
- Author:
- John Grimes
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeFhirPathString(String value) On the way back out, we only do the minimal escaping to guarantee syntactical correctness.static StringunescapeFhirPathString(String value) This method implements the rules for dealing with strings in the FHIRPath specification.static StringunquoteFhirIdentifier(String quotedIdentifier) Unquotes a FHIRPath quoted identifier, handling both the tick quotes and any escaped characters.
-
Method Details
-
escapeFhirPathString
On the way back out, we only do the minimal escaping to guarantee syntactical correctness.- Parameters:
value- the value to apply escaping to- Returns:
- the escaped result
-
unescapeFhirPathString
This method implements the rules for dealing with strings in the FHIRPath specification.- Parameters:
value- the string to be unescaped- Returns:
- the unescaped result
- See Also:
-
unquoteFhirIdentifier
Unquotes a FHIRPath quoted identifier, handling both the tick quotes and any escaped characters.- Parameters:
quotedIdentifier- The identifier to unquote- Returns:
- the unquoted identifier
-