001package edu.pdx.cs410J.grader.poa;
002
003public interface POASubmissionView {
004
005  enum POAContentType {
006    TEXT("text/plain"),
007    HTML("text/html");
008
009    private final String contentType;
010
011    POAContentType(String contentType) {
012      this.contentType = contentType;
013    }
014
015    public String getContentType() {
016      return this.contentType;
017    }
018  }
019
020  void setSubmissionSubject(String subject);
021
022  void setSubmissionSubmitter(String submitter);
023
024  void setSubmissionTime(String time);
025
026  void setContent(String content, POAContentType contentType) throws CouldNotParseContent;
027
028  class CouldNotParseContent extends Exception {
029    public CouldNotParseContent(Throwable cause) {
030      super(cause);
031    }
032  }
033}