Class QueryStringBuilder
java.lang.Object
org.eclipse.rdf4j.workbench.util.QueryStringBuilder
Helper class for substituting in variables to query templates for the purpose of saving and retrieving user queries
to a repository local to the workbench.
- Author:
- Dale Visser
-
Constructor Summary
ConstructorsConstructorDescriptionQueryStringBuilder(String template) Creates a new builder from the given template. -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected voidReplace instances of the old text with a copy of the new text.protected voidreplaceQuote(String paramText, String newText) protected voidreplaceURI(String paramText, Object uri) Replace the repository variable with the current repository URL.toString()Returns the internal string being constructed.protected static StringPlace double quotes around the given string and append an XSD data type.
-
Constructor Details
-
QueryStringBuilder
Creates a new builder from the given template.- Parameters:
template-
-
-
Method Details
-
toString
-
replaceURI
-
replace
-
replaceQuote
-
xsdQuote
-
quote
-