@@ -0,0 +1,1859 @@
+package seedu.taskmanager.model.item;%0A%0Aimport seedu.taskmanager.commons.exceptions.IllegalValueException;%0A%0A/**%0A * Represents a Item's priority in the task manager.%0A */%0Apublic class Priority %7B%0A%0A%09public static final String HIGH_PRIORITY_WORD = %22event%22;%0A%09public static final String MEDIUM_PRIORITY_WORD = %22deadline%22;%0A%09public static final String LOW_PRIORITY_WORD = %22task%22;%0A%09%0A    public static final String MESSAGE_PRIORITY_CONSTRAINTS = %22Item types should only be 'task', 'deadline' or 'event'.%22;%0A    public static final String PRIORITY_VALIDATION_REGEX = HIGH_PRIORITY_WORD %0A                                                           + %22%7C%22 + MEDIUM_PRIORITY_WORD %0A                                                           + %22%7C%22 + LOW_PRIORITY_WORD;%0A%0A    public final String value;%0A%0A    /**%0A     * Validates given priority.%0A     *%0A     * @throws IllegalValueException if given priority string is invalid.%0A     */%0A    public Priority(String priority) throws IllegalValueException %7B%0A        assert priority != null;%0A        priority = priority.trim();%0A        if (!isValidPriority(priority.toLowerCase())) %7B%0A            throw new IllegalValueException(MESSAGE_PRIORITY_CONSTRAINTS);%0A        %7D%0A        this.value = priority;%0A    %7D%0A%0A    /**%0A     * Returns true if a given string is a valid priority.%0A     */%0A    public static boolean isValidPriority(String test) %7B%0A        return test.matches(PRIORITY_VALIDATION_REGEX);%0A    %7D%0A%0A%0A    @Override%0A    public String toString() %7B%0A        return value;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object other) %7B%0A        return other == this // short circuit if same object%0A                %7C%7C (other instanceof Priority // instanceof handles nulls%0A                && this.value.equals(((Priority) other).value)); // state check%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return value.hashCode();%0A    %7D%0A%0A%7D%0A

Add Priority class to Model