public final 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 final 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 final 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 final void add(Constraint constraint) throws DataException, InvalidConstraintException
Constraint
object to the collection.constraint
- The Constraint to add.DataException
InvalidConstraintException
public final void remove(Constraint constraint)
Constraint
from the collection.constraint
- The Constraint
to remove.public final boolean contains(Constraint cc)
cc
- The Constraint to remove.public final int getCount()
public final java.util.Iterator iterator()
iterator
in interface java.lang.Iterable