Class SearchExpression

java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.SearchExpression

public class SearchExpression extends Object
Representation of a OData query parameter for Search Modifier
  • Constructor Details

    • SearchExpression

      public SearchExpression(@Nonnull String term)
  • Method Details

    • of

      @Nonnull public static SearchExpression of(@Nonnull String term)
      Create a search expression for a single string.
      Parameters:
      term - The search string
      Returns:
      Search Expression with a single search string.
    • and

      @Nonnull public SearchExpression and(@Nonnull String term)
      Combine current string with another search string in conjunction.
      Parameters:
      term - The other search string.
      Returns:
      Search Expression with a conjunction string.
    • and

      @Nonnull public SearchExpression and(@Nonnull SearchExpression searchExpression)
      Combine current search expression with another search expression in conjunction.
      Parameters:
      searchExpression - The other search expression.
      Returns:
      Search Expression with a conjunction.
    • or

      @Nonnull public SearchExpression or(@Nonnull String term)
      Combine current string with another search string in disjunction.
      Parameters:
      term - The other search string.
      Returns:
      Search Expression with a disjunction string.
    • or

      @Nonnull public SearchExpression or(@Nonnull SearchExpression searchExpression)
      Combine current search expression with another search expression in disjunction.
      Parameters:
      searchExpression - The other search expression.
      Returns:
      Search Expression with a disjunction.
    • not

      @Nonnull public SearchExpression not()
      Negate the current search expression.
      Returns:
      Modified search expression with negation.
    • getTerm

      @Nonnull protected String getTerm()