PostReplyForm.java :  » Image » ochan » org » ochan » form » Java Open Source

Java Open Source » Image » ochan 
ochan » org » ochan » form » PostReplyForm.java
/*
Ochan - image board/anonymous forum
Copyright (C) 2010  David Seymore

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.ochan.form;

import org.springframework.web.multipart.MultipartFile;

public class PostReplyForm {

  private String parent;
  private String author;
  private String subject;
  private String email;
  private String url;
  private String comment;
  private MultipartFile file;
  private String fileUrl;
  private MultipartFile zipFile;

  /**
   * @return the parent
   */
  public String getParent() {
    return parent;
  }

  /**
   * @param parent
   *            the parent to set
   */
  public void setParent(String parent) {
    this.parent = parent;
  }

  /**
   * @return the author
   */
  public String getAuthor() {
    return author;
  }

  /**
   * @param author
   *            the author to set
   */
  public void setAuthor(String author) {
    this.author = author;
  }

  /**
   * @return the email
   */
  public String getEmail() {
    return email;
  }

  /**
   * @param email
   *            the email to set
   */
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * @return the url
   */
  public String getUrl() {
    return url;
  }

  /**
   * @param url
   *            the url to set
   */
  public void setUrl(String url) {
    this.url = url;
  }

  /**
   * @return the comment
   */
  public String getComment() {
    return comment;
  }

  /**
   * @param comment
   *            the comment to set
   */
  public void setComment(String comment) {
    this.comment = comment;
  }

  /**
   * @return the file
   */
  public MultipartFile getFile() {
    return file;
  }

  /**
   * @param file
   *            the file to set
   */
  public void setFile(MultipartFile file) {
    this.file = file;
  }

  /**
   * @return the subject
   */
  public String getSubject() {
    return subject;
  }

  /**
   * @param subject
   *            the subject to set
   */
  public void setSubject(String subject) {
    this.subject = subject;
  }

  public String getFileUrl() {
    return fileUrl;
  }

  public void setFileUrl(String fileUrl) {
    this.fileUrl = fileUrl;
  }

  /**
   * @return the zipFile
   */
  public MultipartFile getZipFile() {
    return zipFile;
  }

  /**
   * @param zipFile
   *            the zipFile to set
   */
  public void setZipFile(MultipartFile zipFile) {
    this.zipFile = zipFile;
  }

  /**
   * Not including File. COMMENTS ARE INCLUDED!! (may be long)
   * 
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    StringBuilder buf = new StringBuilder();
    buf.append(getClass().getName());
    buf.append("[");
    buf.append("author:").append(this.getAuthor());
    buf.append(",subject:").append(this.getSubject());
    buf.append(",email:").append(this.getEmail());
    buf.append(",url:").append(this.getUrl());
    buf.append(",comment:").append(this.getComment());
    buf.append(",parent: ").append(this.getParent());
    buf.append("]");
    return buf.toString();
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.