package seedu.address.model.task;


import seedu.address.commons.exceptions.IllegalValueException;

/**
 * Represents a Task's venue in task manager.
 * Guarantees: immutable; is valid as declared in {@link #isValidVenue(String)}
 */
public class Venue implements Field {

    public static final String MESSAGE_VENUE_CONSTRAINTS =
            "task venue can be in any form.";
    //TODO: public static final String DATE_VALIDATION_REGEX =

    public final String value;

    /**
     * Validity given venue.
     *
     * @throws IllegalValueException if given venue string is invalid.
     */
    public Venue(String venue) throws IllegalValueException {
        assert venue != null;
        String trimmedVenue = venue.trim();
        if (!isValidVenue(trimmedVenue)) {
            throw new IllegalValueException(MESSAGE_VENUE_CONSTRAINTS);
        }
        this.value = trimmedVenue;
    }

    /**
     * Returns if a given string is a valid venue.
     */
    public static boolean isValidVenue(String test) {
        return true;
        //TODO: add REGEX
        //return test.matches(EMAIL_VALIDATION_REGEX);
    }

    @Override
    public String toString() {
        return value;
    }

    @Override
    public boolean equals(Object other) {
        return other == this // short circuit if same object
                || (other instanceof Venue // instanceof handles nulls
                && this.value.equals(((Venue) other).value)); // state check
    }

    @Override
    public int hashCode() {
        return value.hashCode();
    }

	@Override
	public String getDisplayText() {
		if ((value == null) || (value == "")) {
			return "";
		} else {
			return "Venue: " + value;
		}
	}
}

@@ -1,8 +1,29 @@
+//@@author A0147984L%0A
 package 
@@ -49,17 +49,16 @@
 .task;%0A%0A
-%0A
 import s
@@ -377,37 +377,105 @@
 can 
-be 
+only conta
 in
+s
  a
-ny form
+lphanumerics and #, -, '
 .%22;%0A
+%0A
     //
-TODO:
+ cannot begin with space; can only contains%0A   
  pub
@@ -498,19 +498,20 @@
  String 
-DAT
+VENU
 E_VALIDA
@@ -522,16 +522,58 @@
 _REGEX =
+ %22%5E((%5C%5Cw)%7C(%5B-#%5D))((%5C%5Cw)%7C(%5B-#'%5D)%7C(%5C%5Cs))*%22; 
 %0A%0A    pu
@@ -1141,24 +1141,59 @@
 ing test) %7B%0A
+        if (test.equals(%22%22)) %7B%0A    
         retu
@@ -1213,25 +1213,9 @@
     
-//TODO: add REGEX
+%7D
 %0A   
@@ -1219,18 +1219,16 @@
         
-//
 return t
@@ -1243,13 +1243,13 @@
 hes(
-EMAIL
+VENUE
 _VAL

Add regex for venue