public void setFirstOccurence(int min, int max) throws ParseException {
    if (fullCondition == null) {
      if ((min < 0) || (min > max) || (max < 1)) {
        throw new ParseException("Illegal number {" + min + "," + max + "}");
      }
      if (min == 0) {
        firstOptional = true;
      }
      firstMinimumOccurence = Math.max(1, min);
      firstMaximumOccurence = max;
    } else {
      throw new ParseException("fullCondition already generated");
    }
  }
public void setFirstOccurence ( int min , int max ) throws ParseException { if ( fullCondition == null ) { if ( ( min < 0 ) || ( min > max ) || ( max < 1 ) ) { throw new ParseException ( "Illegal number {" + min + "," + max + "}" ) ; } if ( min == 0 ) { firstOptional = true ; } firstMinimumOccurence = Math . max ( 1 , min ) ; firstMaximumOccurence = max ; } else { throw new ParseException ( "fullCondition already generated" ) ; } }
Sets the first occurence.

@param min the min
@param max the max
@throws ParseException the parse exception