public CollectionConstraint(String name, boolean optional, Class dataType, Class containedType)Creates a new instance of CollectionConstraint.
super(name, optional, dataType);
if (!Collection.class.isAssignableFrom(dataType)) {
throw new IllegalArgumentException("The dataType must be a Collection"); //$NON-NLS-1$
}
this.containedType = containedType;
|