public class ConstraintCollection
extends java.lang.Object
implements java.lang.Iterable
DataTable.| Modifier and Type | Method and Description |
|---|---|
void |
add(Constraint constraint)
Adds the specified
Constraint object to the collection. |
boolean |
contains(Constraint cc)
Indicates whether the Constraint object specified by name exists in the collection.
|
Constraint |
get(int index)
Gets the
Constraint from the collection at the specified index. |
Constraint |
get(java.lang.String name)
Gets the
Constraint from the collection with the specified name. |
int |
getCount()
Gets the total number of elements in a collection.
|
java.util.Iterator |
iterator() |
void |
remove(Constraint constraint)
Removes the specified
Constraint from the collection. |
public Constraint get(java.lang.String name)
Constraint from the collection with the specified name.name - The Constraint.getConstraintName() / Constraint.setConstraintName(java.lang.String) of the constraint to return.Constraint with the specified name; otherwise a null value if the Constraint does not exist.public Constraint get(int index)
Constraint from the collection at the specified index.index - The index of the constraint to return.Constraint at the specified index.public void add(Constraint constraint) throws DataException, InvalidConstraintException
Constraint object to the collection.constraint - The Constraint to add.DataExceptionInvalidConstraintExceptionpublic void remove(Constraint constraint)
Constraint from the collection.constraint - The Constraint to remove.public boolean contains(Constraint cc)
cc - The Constraint to remove.public int getCount()
public java.util.Iterator iterator()
iterator in interface java.lang.Iterable