本文整理匯總了Java中org.insightech.er.editor.model.testdata.RepeatTestDataDef.getSelects方法的典型用法代碼示例。如果您正苦於以下問題:Java RepeatTestDataDef.getSelects方法的具體用法?Java RepeatTestDataDef.getSelects怎麽用?Java RepeatTestDataDef.getSelects使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.insightech.er.editor.model.testdata.RepeatTestDataDef
的用法示例。
在下文中一共展示了RepeatTestDataDef.getSelects方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createXML
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //導入方法依賴的package包/類
private String createXML(final RepeatTestDataDef repeatTestDataDef, final NormalColumn column, final PersistentContext context) {
final StringBuilder xml = new StringBuilder();
final String columnId = context.columnMap.get(column);
if (columnId != null) {
xml.append("<data_def>\n");
xml.append("\t<column_id>").append(columnId).append("</column_id>\n");
xml.append("\t<type>").append(escape(repeatTestDataDef.getType())).append("</type>\n");
xml.append("\t<repeat_num>").append(Format.toString((repeatTestDataDef.getRepeatNum()))).append("</repeat_num>\n");
xml.append("\t<template>").append(escape(repeatTestDataDef.getTemplate())).append("</template>\n");
xml.append("\t<from>").append(Format.toString((repeatTestDataDef.getFrom()))).append("</from>\n");
xml.append("\t<to>").append(Format.toString((repeatTestDataDef.getTo()))).append("</to>\n");
xml.append("\t<increment>").append(Format.toString((repeatTestDataDef.getIncrement()))).append("</increment>\n");
for (final String select : repeatTestDataDef.getSelects()) {
xml.append("\t<select>").append(escape(select)).append("</select>\n");
}
xml.append("\t<modified_values>\n");
for (final Integer modifiedRow : repeatTestDataDef.getModifiedValues().keySet()) {
xml.append("\t\t<modified_value>\n");
xml.append("\t\t\t<row>").append(modifiedRow).append("</row>\n");
xml.append("\t\t\t<value>").append(escape(repeatTestDataDef.getModifiedValues().get(modifiedRow))).append("</value>\n");
xml.append("\t\t</modified_value>\n");
}
xml.append("\t</modified_values>\n");
xml.append("</data_def>\n");
}
return xml.toString();
}
示例2: createXML
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //導入方法依賴的package包/類
private String createXML(RepeatTestDataDef repeatTestDataDef,
NormalColumn column, PersistentContext context) {
StringBuilder xml = new StringBuilder();
Integer columnId = context.columnMap.get(column);
if (columnId != null) {
xml.append("<data_def>\n");
xml.append("\t<column_id>").append(columnId)
.append("</column_id>\n");
xml.append("\t<type>").append(escape(repeatTestDataDef.getType()))
.append("</type>\n");
xml.append("\t<repeat_num>")
.append(Format.toString((repeatTestDataDef.getRepeatNum())))
.append("</repeat_num>\n");
xml.append("\t<template>")
.append(escape(repeatTestDataDef.getTemplate()))
.append("</template>\n");
xml.append("\t<from>")
.append(Format.toString((repeatTestDataDef.getFrom())))
.append("</from>\n");
xml.append("\t<to>")
.append(Format.toString((repeatTestDataDef.getTo())))
.append("</to>\n");
xml.append("\t<increment>")
.append(Format.toString((repeatTestDataDef.getIncrement())))
.append("</increment>\n");
for (String select : repeatTestDataDef.getSelects()) {
xml.append("\t<select>").append(escape(select))
.append("</select>\n");
}
xml.append("\t<modified_values>\n");
for (Integer modifiedRow : repeatTestDataDef.getModifiedValues()
.keySet()) {
xml.append("\t\t<modified_value>\n");
xml.append("\t\t\t<row>").append(modifiedRow)
.append("</row>\n");
xml.append("\t\t\t<value>")
.append(escape(repeatTestDataDef.getModifiedValues()
.get(modifiedRow))).append("</value>\n");
xml.append("\t\t</modified_value>\n");
}
xml.append("\t</modified_values>\n");
xml.append("</data_def>\n");
}
return xml.toString();
}