本文整理汇总了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();
}