DataTableCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public class DataTableCollection implements Iterable<DataTable>

Represents the collection of tables for the DataSet.

Methods

Method Description
iterator()
get(String name) Case-insensitive search is performed, if DataTable is not found by the original name.
get(String name, String namespace)
add(DataTable dataTable) Adds a table to the collection.
add(String dataTableName) Adds and return table to the collection.
get(int index)
getCount()
contains(String name)

iterator()

public Iterator<DataTable> iterator()

Returns: java.util.Iterator<com.groupdocs.assembly.system.data.DataTable>

get(String name)

public DataTable get(String name)

Case-insensitive search is performed, if DataTable is not found by the original name.

Parameters:

Parameter Type Description
name java.lang.String table name

Returns: DataTable - a DataTable by its name. Returns null if not found.

get(String name, String namespace)

public DataTable get(String name, String namespace)

Parameters:

Parameter Type Description
name java.lang.String
namespace java.lang.String

Returns: DataTable

add(DataTable dataTable)

public void add(DataTable dataTable)

Adds a table to the collection. The table name must be unique within the collection, otherwise will throw an exception.

Parameters:

Parameter Type Description
dataTable DataTable table will be added into this collection

add(String dataTableName)

public DataTable add(String dataTableName)

Adds and return table to the collection. The table name must be unique within the collection, otherwise will throw an exception.

Parameters:

Parameter Type Description
dataTableName java.lang.String name of the table that will be added into this collection

Returns: DataTable

get(int index)

public DataTable get(int index)

Parameters:

Parameter Type Description
index int position of the table in this collection

Returns: DataTable - a DataTable instance by its index.

getCount()

public int getCount()

Returns: int - total number of items in this collection.

contains(String name)

public boolean contains(String name)

Parameters:

Parameter Type Description
name java.lang.String table name

Returns: boolean - true if this collection contains DataTable with the given name.