public class SparqlBuilderUtils extends Object
Constructor and Description |
---|
SparqlBuilderUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
appendAndNewlineIfPresent(Optional<? extends QueryElement> elementOptional,
StringBuilder builder) |
static void |
appendQueryElementIfPresent(Optional<? extends QueryElement> queryElementOptional,
StringBuilder builder,
String prefix,
String suffix) |
static void |
appendStringIfPresent(Optional<String> stringOptional,
StringBuilder builder,
String prefix,
String suffix) |
static String |
getBracedString(String contents) |
static String |
getBracketedString(String contents) |
static String |
getLongQuotedString(String contents)
For string literals that contain single- or double-quotes
|
static <O> Optional<O> |
getOrCreateAndModifyOptional(Optional<O> optional,
java.util.function.Supplier<O> getter,
java.util.function.UnaryOperator<O> operator) |
static String |
getParenthesizedString(String contents) |
static String |
getQuotedString(String contents) |
public static <O> Optional<O> getOrCreateAndModifyOptional(Optional<O> optional, java.util.function.Supplier<O> getter, java.util.function.UnaryOperator<O> operator)
public static void appendAndNewlineIfPresent(Optional<? extends QueryElement> elementOptional, StringBuilder builder)
public static void appendQueryElementIfPresent(Optional<? extends QueryElement> queryElementOptional, StringBuilder builder, String prefix, String suffix)
public static void appendStringIfPresent(Optional<String> stringOptional, StringBuilder builder, String prefix, String suffix)
public static String getLongQuotedString(String contents)
contents
- Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.