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;
}

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 ; }
creates a string attribute rule .
