public void addConstraint ( final FieldConstraint constraint ) { if ( constraintList == null ) { constraintList = new CompositeFieldConstraint ( ) ; } this . constraintList . addConstraint ( constraint ) ; }
This will add a top level constraint .