DataTableCollection
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public class DataTableCollection implements Iterable<DataTable>
Represents the collection of tables for the DataSet.
| 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) |
public Iterator<DataTable> iterator()
Returns: java.util.Iterator<com.groupdocs.assembly.system.data.DataTable>
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.
public DataTable get(String name, String namespace)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | |
| namespace | java.lang.String |
Returns: 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 |
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
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.
public int getCount()
Returns: int - total number of items in this collection.
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.