Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sakaiproject.component.app.scheduler.jobs.eventpurge;
 
Created by IntelliJ IDEA. User: duffy Date: Aug 27, 2010 Time: 2:58:52 PM To change this template use File | Settings | File Templates.
    public void assertValid(String propertyLabelString value)
    {
        if (..equals(propertyLabel))
        {
            if (value == null || value.trim().length() < 1)
            {
                throw new ConfigurableJobPropertyValidationException ("days.empty");
            }
            int num = 0;
            try
            {
                num = Integer.parseInt(value);
            }
            catch (NumberFormatException nfe)
            {
                throw new ConfigurableJobPropertyValidationException ("days.numberformat");
            }
            if (num < 1)
                throw new ConfigurableJobPropertyValidationException ("days.lessthanone");
        }
    }
New to GrepCode? Check out our FAQ X