* @author: Torsten Curdt <tcurdt@dff.st>
*/
public class ConstraintFactory {
public Constraint createConstraintInstance(String type, String name, Object context, Configuration conf) {
if ("choice".equals(type)) {
return(new ChoiceConstraint());
}
else {
return(new RegexprConstraint());
}
}