use of com.twinsoft.util.StringEx in project convertigo by convertigo.
the class DatabaseCacheManager method escapeString.
private String escapeString(String s) {
StringEx sx = new StringEx(s);
sx.replaceAll("'", "''");
return sx.toString();
}
use of com.twinsoft.util.StringEx in project convertigo by convertigo.
the class TransactionWithVariables method generateXsdResponseData.
@Override
protected String generateXsdResponseData(Document document, boolean extract) throws Exception {
StringEx sx = new StringEx(extract ? extractXsdType(document) : generateWsdlType(document));
// sx.replace(getName() + "Response", getName() + "ResponseData");
sx.replace(getName() + "Response\"", getName() + "ResponseData\"");
sx.replaceAll("\"p_ns:", "\"" + getProject().getName() + "_ns:");
String xsdResponseData = " " + sx.toString();
return xsdResponseData;
}
use of com.twinsoft.util.StringEx in project convertigo by convertigo.
the class StringUtils method escape.
public static String escape(String str) {
StringEx sx = new StringEx(str);
sx.replaceAll("&", "&");
sx.replaceAll("\"", """);
sx.replaceAll("<", "<");
sx.replaceAll(">", ">");
sx.replaceAll("^", "^");
sx.replaceAll("%", "%");
return sx.toString();
}
use of com.twinsoft.util.StringEx in project convertigo by convertigo.
the class XMLUtils method simplePrettyPrintDOM.
public static String simplePrettyPrintDOM(String sDocument) {
StringEx sxDocument = new StringEx(sDocument);
sxDocument.replaceAll(">", ">\n");
return sxDocument.toString();
}
use of com.twinsoft.util.StringEx in project convertigo by convertigo.
the class HTTPStatement method parse.
private String parse(String httpVariableName) {
StringEx variableName = new StringEx(httpVariableName);
variableName.replaceAll(".", "");
variableName.replaceAll("[", "");
variableName.replaceAll("]", "");
variableName.replaceAll("(", "");
variableName.replaceAll(")", "");
return variableName.toString();
}
Aggregations