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