ejb3/src/main/java/org/jboss/as/ejb3/timerservice/schedule/ScheduleExpressionTypeUtil.java
public static ScheduleExpressionType getType(String value) {
        if (value == null) {
            throw EjbLogger.EJB3_TIMER_LOGGER.valueIsNull();
        }
        // Order of check is important.
        // TODO: Explain why this order is important

        if (value.trim().equals("*")) {
            return ScheduleExpressionType.WILDCARD;
        }
        if (value.contains(",")) {
            return ScheduleExpressionType.LIST;
        }
        if (value.contains("-") && RangeValue.accepts(value)) {
            return ScheduleExpressionType.RANGE;
        }
        if (value.contains("/")) {
            return ScheduleExpressionType.INCREMENT;
        }
        return ScheduleExpressionType.SINGLE_VALUE;
    }
public static ScheduleExpressionType getType(String value) {
        if (value == null) {
            throw EjbLogger.EJB3_TIMER_LOGGER.valueIsNull();
        }
        // Order of check is important.
        // TODO: Explain why this order is important

        if (value.trim().equals("*")) {
            return ScheduleExpressionType.WILDCARD;
        }
        if (value.contains(",")) {
            return ScheduleExpressionType.LIST;
        }
        if (value.contains("-") && RangeValue.accepts(value)) {
            return ScheduleExpressionType.RANGE;
        }
        if (value.contains("/")) {
            return ScheduleExpressionType.INCREMENT;
        }
        return ScheduleExpressionType.SINGLE_VALUE;
    }
public static ScheduleExpressionType getType ( String value ) { if ( value == null ) { throw EjbLogger . EJB3_TIMER_LOGGER . valueIsNull ( ) ; } // Order of check is important. // TODO: Explain why this order is important if ( value . trim ( ) . equals ( "*" ) ) { return ScheduleExpressionType . WILDCARD ; } if ( value . contains ( "," ) ) { return ScheduleExpressionType . LIST ; } if ( value . contains ( "-" ) && RangeValue . accepts ( value ) ) { return ScheduleExpressionType . RANGE ; } if ( value . contains ( "/" ) ) { return ScheduleExpressionType . INCREMENT ; } return ScheduleExpressionType . SINGLE_VALUE ; }
Returns the corresponding {@link org.jboss.as.ejb3.timerservice.schedule.value.ScheduleExpressionType} for the passed value

@param value The value to be parsed
@return
Returns the corresponding { @link org . jboss . as . ejb3 . timerservice . schedule . value . ScheduleExpressionType } for the passed value