public class DocumentTableCollection
extends java.lang.Object
implements java.lang.Iterable
DocumentTable
objects of a particular DocumentTableSet
instance.
The collection is filled automatically while loading the corresponding tables from a document and can not be modified. However, properties of DocumentTable
objects contained within the collection can be modified.Modifier and Type | Method and Description |
---|---|
boolean |
contains(DocumentTable table)
Returns a value indicating whether this collection contains the specified table.
|
boolean |
contains(java.lang.String name)
Returns a value indicating whether this collection contains a table with the specified name.
|
DocumentTable |
get(int index)
Gets a
DocumentTable instance from the collection at the specified index. |
DocumentTable |
get(java.lang.String name)
Gets a
DocumentTable instance with the specified name from the collection. |
int |
getCount()
Gets the total number of
DocumentTable objects in the collection. |
int |
indexOf(DocumentTable table)
Returns the index of the specified table within this collection.
|
int |
indexOf(java.lang.String name)
Returns the index of a table with the specified name within this collection.
|
java.util.Iterator |
iterator()
Returns an enumerator to iterate
DocumentTable objects of this collection. |
public java.util.Iterator iterator()
DocumentTable
objects of this collection.iterator
in interface java.lang.Iterable
DocumentTable
objects of this collection.public boolean contains(java.lang.String name)
name
- The case-insensitive name of a table to look for.public boolean contains(DocumentTable table)
table
- A table to look for.public int indexOf(java.lang.String name)
name
- The case-insensitive name of a table to find.public int indexOf(DocumentTable table)
table
- A table to find.public DocumentTable get(int index)
DocumentTable
instance from the collection at the specified index.index
- The zero-based index of the table to return.DocumentTable
instance from the collection at the specified index.public DocumentTable get(java.lang.String name)
DocumentTable
instance with the specified name from the collection.name
- The case-insensitive name of the table to return.DocumentTable
instance with the specified name from the collection or null if such an instance does not exist.public int getCount()
DocumentTable
objects in the collection.DocumentTable
objects in the collection.