@Override protected void validate() { super.validate(); if (_daysAgo != null && _endDate != null) { throw new IllegalArgumentException("Cannot specify both end date and days ago"); } if (_numDays != null && _startDate != null && _endDate != null) { throw new IllegalArgumentException("Cannot specify num days when both start date and end date are set"); } } }