question: public StringAttributeRule ( String name , String description , Enum [ ] valid , boolean optional ) { this ( name , description , null , optional , 0 , Integer . MAX_VALUE ) ; validValues = new ArrayList < String > ( ) ; for ( Enum aValid : valid ) { validValues . add ( aValid . name ( ) ) ; } this . example = null ; }
target:  Creates a String attribute rule.