public class QueryStringBuilder extends Object
Constructor and Description |
---|
QueryStringBuilder(String template)
Creates a new builder from the given template.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
quote(String value,
String left,
String right) |
protected void |
replace(String paramText,
String newText)
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.
|
String |
toString()
Returns the internal string being constructed.
|
protected static String |
xsdQuote(String value,
String type)
Place double quotes around the given string and append an XSD data type.
|
public QueryStringBuilder(String template)
template
- public String toString()
protected void replaceURI(String paramText, Object uri)
paramText
- the $<...> formatted parameter nameuri
- any object who's toString() returns a valid URIprotected void replace(String paramText, String newText)
paramText
- parameter in the form "$newText
- the new textprotected static String xsdQuote(String value, String type)
value
- the value to quotetype
- the XSD data type nameCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.