public class StringFunction extends Object
| Constructor and Description |
|---|
StringFunction() |
| Modifier and Type | Method and Description |
|---|---|
static StringValue |
concat(ODataProperty property,
String operand)
Creates concat filter function that concatenates a property of an entity with a string operand
|
static StringValue |
concat(StringValue filterFunction,
String operand)
Creates concat filter function that concatenates the result of a filter function with a string operand.
|
static BoolValue |
endsWith(ODataProperty property,
String operand)
Creates endswith filter function that checks whether the property value ends
with a particular string
|
static NumValue |
indexOf(ODataProperty property,
String operand)
Creates indexof filter function that returns the position of a specified string within the property value
|
static BoolValue |
isSubstringOf(ODataProperty property,
String operand)
Creates issubstringof filter function that checks whether a specified string is present
in the property value of an entity
|
static NumValue |
length(ODataProperty property)
Creates length filter function that returns the number of characters in the property value
|
static StringValue |
replace(ODataProperty property,
String find,
String replace)
Creates replace filter function that replaces a string from the
property value of an entity
|
static StringValue |
replace(StringValue filterFunction,
String find,
String replace)
Creates replace filter function that replaces a string from the
result of another filter function
|
static BoolValue |
startsWith(ODataProperty property,
String operand)
Creates startswith filter function that checks whether the property value starts
with a particular string
|
static StringValue |
substring(ODataProperty property,
int pos)
Creates substring filter function that extracts a string starting from
a defined position in the property of an entity
|
static StringValue |
substring(ODataProperty property,
int pos,
int length)
Creates substring filter function that extracts a string of a defined length from
the property of an entity, starting from a specified position
|
static StringValue |
substring(StringValue filterFunction,
int pos)
Creates substring filter function that extracts a string starting from
a defined position in the result of another filter function
|
static StringValue |
substring(StringValue filterFunction,
int pos,
int length)
Creates substring filter function that extracts a string of a defined length from
the result of a filter function, starting from a specified position
|
static StringValue |
toLower(ODataProperty property)
Creates tolower filter function that converts the property value of an entity to lower case
|
static StringValue |
toLower(StringValue property)
Creates tolower filter function that converts the result of a filter function to lower case
|
static StringValue |
toUpper(ODataProperty property)
Creates toupper filter function that capitalizes the property value of an entity
|
static StringValue |
toUpper(StringValue filterFunction)
Creates toupper filter function that capitalizes the result of a filter function
|
static StringValue |
trim(ODataProperty property)
Creates trim filter function that trims the whitespaces from the property value of an entity
|
static StringValue |
trim(StringValue filterFunction)
Creates trim filter function that trims the whitespaces from the result of a filter function
|
public static StringValue concat(ODataProperty property, String operand)
property - An ODataProperty object representing the property of an entityoperand - The string being concatenated to the property valuepublic static StringValue concat(StringValue filterFunction, String operand)
filterFunction - A StringValue object representing a filter functionoperand - The string being concatenated to the filter functionpublic static StringValue trim(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static StringValue trim(StringValue filterFunction)
filterFunction - A StringValue object representing a filter functionpublic static StringValue toUpper(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static StringValue toUpper(StringValue filterFunction)
filterFunction - A StringValue object representing a filter functionpublic static StringValue toLower(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static StringValue toLower(StringValue property)
filterFunction - A StringValue object representing a filter functionpublic static StringValue substring(ODataProperty property, int pos, int length)
property - An ODataProperty object representing the property of an entitypos - Starting position from which the string has to extractedlength - Number of characters to be included in the stringpublic static StringValue substring(StringValue filterFunction, int pos, int length)
filterFunction - A StringValue object representing a filter functionpos - Starting position from which the string has to extractedlength - Number of characters to be included in the stringpublic static StringValue substring(ODataProperty property, int pos)
property - An ODataProperty object representing the property of an entitypos - Starting position from which the string has to extractedpublic static StringValue substring(StringValue filterFunction, int pos)
filterFunction - A StringValue object representing a filter functionpos - Starting position from which the string has to extractedpublic static StringValue replace(ODataProperty property, String find, String replace)
property - An ODataProperty object representing the property of an entityfind - String to be replaced within the property valuereplace - String that replaces the find stringpublic static StringValue replace(StringValue filterFunction, String find, String replace)
filterFunction - A StringValue object representing a filter functionfind - String to be replaced within the result of the filter functionreplace - String that replaces the find stringpublic static BoolValue startsWith(ODataProperty property, String operand)
property - An ODataProperty object representing the property of an entityoperand - Represents the starting sequence of the property valuepublic static BoolValue endsWith(ODataProperty property, String operand)
property - An ODataProperty object representing the property of an entityoperand - Represents the ending sequence of the property valuepublic static BoolValue isSubstringOf(ODataProperty property, String operand)
property - An ODataProperty object representing the property of an entityoperand - Represents the string to be searched in the property valuepublic static NumValue length(ODataProperty property)
property - An ODataProperty object representing the property of an entitypublic static NumValue indexOf(ODataProperty property, String operand)
property - An ODataProperty object representing the property of an entityoperand - Represents the string to be checked in the property valueCopyright © 2020 SAP. All Rights Reserved.