/*
 * Created on Sep 24, 2008 (C) Copyright TANDBERG Television Ltd.
 */

package com.tandbergtv.watchpoint.pmm.schedule;

/**
 * @author Vijay Silva
 */
public enum ScheduleValidationCode {

	/** Indicates a general validation error for the title */
	GENERAL("VAL-SCHEDULE-001"),

	/** Indicates that the schedule contains titles with different specifications */
	MULTIPLE_TITLE_SPECIFICATIONS("VAL-SCHEDULE-002"),
	
	NOT_LICENSED("VAL-SCHEDULE-003"),
	
	LICENSE_EXPIRES("VAL-SCHEDULE-004");

	/* The code string */
	private String code;

	/*
	 * Constructor that takes the validation message code
	 */
	private ScheduleValidationCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	/**
	 * Returns the validation message code
	 * 
	 * @see java.lang.Enum#toString()
	 */
	@Override
	public String toString() {
		return code;
	}
}
