DataTableCollection
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public final class DataTableCollection implements Iterable
Represents the collection of tables for the DataSet.
| Method | Description |
|---|---|
| iterator() | |
| get(String name) | Gets the DataTable object with the specified name. |
| get(String name, String tableNamespace) | Gets the DataTable object with the specified name in the specified namespace. |
| add(DataTable table) | Adds the specified DataTable to the collection. |
| add(String name) | Creates a DataTable object by using the specified name and adds it to the collection. |
| get(int index) | Gets the DataTable object at the specified index. |
| getCount() | |
| contains(String name) | Gets a value that indicates whether a DataTable object with the specified name exists in the collection. |
public final Iterator iterator()
Returns: java.util.Iterator
public final DataTable get(String name)
Gets the DataTable object with the specified name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the DataTable to find. |
Returns: DataTable - A DataTable with the specified name; otherwise null if the DataTable does not exist.
public final DataTable get(String name, String tableNamespace)
Gets the DataTable object with the specified name in the specified namespace.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the DataTable to find. |
| tableNamespace | java.lang.String | The name of the DataTable namespace to look in. |
Returns: DataTable - A DataTable with the specified name; otherwise null if the DataTable does not exist.
public final void add(DataTable table)
Adds the specified DataTable to the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| table | DataTable | The DataTable object to add. |
public final DataTable add(String name)
Creates a DataTable object by using the specified name and adds it to the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name to give the created DataTable. |
Returns: DataTable - The newly created DataTable.
public final DataTable get(int index)
Gets the DataTable object at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index of the DataTable to find. |
Returns: DataTable - A DataTable.
public final int getCount()
Returns: int - total number of items in this collection.
public final boolean contains(String name)
Gets a value that indicates whether a DataTable object with the specified name exists in the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the DataTable to find. |
Returns: boolean - true if the specified table exists; otherwise false.
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.