com.groupdocs.assembly.system.data

Class DataTableCollection

  • java.lang.Object
    • com.groupdocs.assembly.system.data.DataTableCollection
  • All Implemented Interfaces:
    java.lang.Iterable


    public final class DataTableCollection
    extends java.lang.Object
    implements java.lang.Iterable
    Represents the collection of tables for the DataSet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(DataTable table)
      Adds the specified DataTable to the collection.
      boolean contains(java.lang.String name)
      Gets a value that indicates whether a DataTable object with the specified name exists in the collection.
      DataTable get(int index)
      Gets the DataTable object at the specified index.
      DataTable get(java.lang.String name)
      Gets the DataTable object with the specified name.
      int getCount() 
      java.util.Iterator iterator() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • iterator

        public final java.util.Iterator iterator()
        Specified by:
        iterator in interface java.lang.Iterable
      • get

        public final DataTable get(java.lang.String name)
        Gets the DataTable object with the specified name.
        Parameters:
        name - The name of the DataTable to find.
        Returns:
        A DataTable with the specified name; otherwise null if the DataTable does not exist.
      • add

        public final void add(DataTable table)
        Adds the specified DataTable to the collection.
        Parameters:
        table - The DataTable object to add.
      • get

        public final DataTable get(int index)
        Gets the DataTable object at the specified index.
        Parameters:
        index - The zero-based index of the DataTable to find.
        Returns:
        A DataTable.
      • getCount

        public final int getCount()
        Returns:
        total number of items in this collection.
      • contains

        public final boolean contains(java.lang.String name)
        Gets a value that indicates whether a DataTable object with the specified name exists in the collection.
        Parameters:
        name - The name of the DataTable to find.
        Returns:
        true if the specified table exists; otherwise false.