本文整理汇总了Java中org.insightech.er.editor.model.testdata.RepeatTestDataDef.setRepeatNum方法的典型用法代码示例。如果您正苦于以下问题:Java RepeatTestDataDef.setRepeatNum方法的具体用法?Java RepeatTestDataDef.setRepeatNum怎么用?Java RepeatTestDataDef.setRepeatNum使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.editor.model.testdata.RepeatTestDataDef
的用法示例。
在下文中一共展示了RepeatTestDataDef.setRepeatNum方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRepeatTestDataDef
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //导入方法依赖的package包/类
private RepeatTestDataDef getRepeatTestDataDef() {
final RepeatTestDataDef dataDef = new RepeatTestDataDef();
dataDef.setType(typeCombo.getText());
dataDef.setRepeatNum(getIntValue(repeatNum));
dataDef.setTemplate(template.getText());
dataDef.setFrom(from.getText());
dataDef.setTo(to.getText());
dataDef.setIncrement(increment.getText());
final String str = selects.getText();
final BufferedReader reader = new BufferedReader(new StringReader(str));
String line = null;
final List<String> lines = new ArrayList<String>();
try {
while ((line = reader.readLine()) != null) {
lines.add(line);
}
} catch (final IOException e) {}
dataDef.setSelects(lines.toArray(new String[lines.size()]));
return dataDef;
}
示例2: getRepeatTestDataDef
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //导入方法依赖的package包/类
private RepeatTestDataDef getRepeatTestDataDef() {
RepeatTestDataDef dataDef = new RepeatTestDataDef();
dataDef.setType(this.typeCombo.getText());
dataDef.setRepeatNum(this.getIntValue(this.repeatNum));
dataDef.setTemplate(this.template.getText());
dataDef.setFrom(this.from.getText());
dataDef.setTo(this.to.getText());
dataDef.setIncrement(this.increment.getText());
String str = this.selects.getText();
BufferedReader reader = new BufferedReader(new StringReader(str));
String line = null;
List<String> lines = new ArrayList<String>();
try {
while ((line = reader.readLine()) != null) {
lines.add(line);
}
} catch (IOException e) {
}
dataDef.setSelects(lines.toArray(new String[lines.size()]));
return dataDef;
}
示例3: loadRepeatTestData
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //导入方法依赖的package包/类
private void loadRepeatTestData(final RepeatTestData repeatTestData, final Element parent, final LoadContext context) {
final Element element = getElement(parent, "repeat_test_data");
final int testDataNum = getIntegerValue(element, "test_data_num");
repeatTestData.setTestDataNum(testDataNum);
final Element dataDefListElement = getElement(element, "data_def_list");
final NodeList nodeList = dataDefListElement.getElementsByTagName("data_def");
for (int i = 0; i < nodeList.getLength(); i++) {
final Element dataDefElement = (Element) nodeList.item(i);
final String columnId = getStringValue(dataDefElement, "column_id");
final NormalColumn column = context.columnMap.get(columnId);
final RepeatTestDataDef dataDef = new RepeatTestDataDef();
dataDef.setType(getStringValue(dataDefElement, "type"));
dataDef.setRepeatNum(this.getIntValue(dataDefElement, "repeat_num"));
dataDef.setTemplate(getStringValue(dataDefElement, "template"));
dataDef.setFrom(getStringValue(dataDefElement, "from"));
dataDef.setTo(getStringValue(dataDefElement, "to"));
dataDef.setIncrement(getStringValue(dataDefElement, "increment"));
dataDef.setSelects(getTagValues(dataDefElement, "select"));
final Element modifiedValuesElement = getElement(dataDefElement, "modified_values");
if (modifiedValuesElement != null) {
final NodeList modifiedValueNodeList = modifiedValuesElement.getElementsByTagName("modified_value");
for (int j = 0; j < modifiedValueNodeList.getLength(); j++) {
final Element modifiedValueNode = (Element) modifiedValueNodeList.item(j);
final Integer row = this.getIntValue(modifiedValueNode, "row");
final String value = getStringValue(modifiedValueNode, "value");
dataDef.setModifiedValue(row, value);
}
}
repeatTestData.setDataDef(column, dataDef);
}
}
示例4: loadRepeatTestData
import org.insightech.er.editor.model.testdata.RepeatTestDataDef; //导入方法依赖的package包/类
private void loadRepeatTestData(RepeatTestData repeatTestData,
Element parent, LoadContext context) {
Element element = this.getElement(parent, "repeat_test_data");
int testDataNum = this.getIntegerValue(element, "test_data_num");
repeatTestData.setTestDataNum(testDataNum);
Element dataDefListElement = this.getElement(element, "data_def_list");
NodeList nodeList = dataDefListElement.getElementsByTagName("data_def");
for (int i = 0; i < nodeList.getLength(); i++) {
Element dataDefElement = (Element) nodeList.item(i);
String columnId = this.getStringValue(dataDefElement, "column_id");
NormalColumn column = context.columnMap.get(columnId);
RepeatTestDataDef dataDef = new RepeatTestDataDef();
dataDef.setType(this.getStringValue(dataDefElement, "type"));
dataDef.setRepeatNum(this.getIntValue(dataDefElement, "repeat_num"));
dataDef.setTemplate(this.getStringValue(dataDefElement, "template"));
dataDef.setFrom(this.getStringValue(dataDefElement, "from"));
dataDef.setTo(this.getStringValue(dataDefElement, "to"));
dataDef.setIncrement(this.getStringValue(dataDefElement,
"increment"));
dataDef.setSelects(this.getTagValues(dataDefElement, "select"));
Element modifiedValuesElement = this.getElement(dataDefElement,
"modified_values");
if (modifiedValuesElement != null) {
NodeList modifiedValueNodeList = modifiedValuesElement
.getElementsByTagName("modified_value");
for (int j = 0; j < modifiedValueNodeList.getLength(); j++) {
Element modifiedValueNode = (Element) modifiedValueNodeList
.item(j);
Integer row = this.getIntValue(modifiedValueNode, "row");
String value = this.getStringValue(modifiedValueNode,
"value");
dataDef.setModifiedValue(row, value);
}
}
repeatTestData.setDataDef(column, dataDef);
}
}