当前位置: 首页>>代码示例>>Java>>正文


Java DataTable.createRow方法代码示例

本文整理汇总了Java中com.belladati.sdk.dataset.data.DataTable.createRow方法的典型用法代码示例。如果您正苦于以下问题:Java DataTable.createRow方法的具体用法?Java DataTable.createRow怎么用?Java DataTable.createRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.belladati.sdk.dataset.data.DataTable的用法示例。


在下文中一共展示了DataTable.createRow方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createRows

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** create rows */
public void createRows() {
	DataTable table = DataTable.createBasicInstance(column);
	assertEquals(table.getRows().size(), 0);
	table.createRow();
	assertEquals(table.getRows().size(), 1);
	table.createRow("abc");
	assertEquals(table.getRows().size(), 2);
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:10,代码来源:DataSetDataTest.java

示例2: rowListImmutable

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** returned row list cannot be modified */
@Test(expectedExceptions = UnsupportedOperationException.class)
public void rowListImmutable() {
	DataTable table = DataTable.createBasicInstance(column);
	List<DataRow> rows = table.getRows();
	DataRow row = table.createRow();
	assertEquals(rows.size(), 0);
	rows.add(row);
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:10,代码来源:DataSetDataTest.java

示例3: rowEmpty

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** new rows are empty */
public void rowEmpty() {
	DataTable table = DataTable.createBasicInstance(column);
	DataRow row = table.createRow();

	assertNull(row.get(column));
	assertEquals(row.getAll(), Arrays.asList((String) null));
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:9,代码来源:DataSetDataTest.java

示例4: rowContentSet

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** can set row content through set method */
public void rowContentSet() {
	String content = "content";
	DataTable table = DataTable.createBasicInstance(column);

	DataRow row = table.createRow();
	row.set(column, content);

	assertEquals(row.get(column), content);
	assertEquals(row.getAll(), Arrays.asList(content));
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:12,代码来源:DataSetDataTest.java

示例5: rowContentSetAll

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** can set row content through set method */
public void rowContentSetAll() {
	String content = "content";
	DataTable table = DataTable.createBasicInstance(column);

	DataRow row = table.createRow();
	row.setAll(content);

	assertEquals(row.get(column), content);
	assertEquals(row.getAll(), Arrays.asList(content));
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:12,代码来源:DataSetDataTest.java

示例6: rowContentSetOffset

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** can set row content through setAll method with offset */
public void rowContentSetOffset() {
	String content = "content";
	DataTable table = DataTable.createBasicInstance(column);

	DataRow row = table.createRow();
	row.setAll(0, content);

	assertEquals(row.get(column), content);
	assertEquals(row.getAll(), Arrays.asList(content));
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:12,代码来源:DataSetDataTest.java

示例7: overwriteValue

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** can overwrite row values */
public void overwriteValue() {
	String content = "content";
	DataTable table = DataTable.createBasicInstance(column);

	DataRow row = table.createRow();
	row.set(column, "other").set(column, content);

	assertEquals(row.get(column), content);
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:11,代码来源:DataSetDataTest.java

示例8: tooManyValuesTable

import com.belladati.sdk.dataset.data.DataTable; //导入方法依赖的package包/类
/** setting more values than columns on the table */
@Test(expectedExceptions = TooManyColumnsException.class)
public void tooManyValuesTable() {
	DataTable table = DataTable.createBasicInstance(column);
	table.createRow("", "");
}
 
开发者ID:BellaDati,项目名称:belladati-sdk-java,代码行数:7,代码来源:DataSetDataTest.java


注:本文中的com.belladati.sdk.dataset.data.DataTable.createRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。