Package org.eclipse.rdf4j.workbench.util
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
ConstructorDescriptionQueryStringBuilder
(String template) Creates a new builder from the given template. -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
protected void
Replace instances of the old text with a copy of the new text.protected void
replaceQuote
(String paramText, String newText) protected void
replaceURI
(String paramText, Object uri) Replace the repository variable with the current repository URL.toString()
Returns the internal string being constructed.protected static String
Place 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
-