package com.eloquent.models;

import java.util.Date;

public class File {

    protected String name;

    protected String path;

    protected String contents;

    protected Date timestamp;

    protected String mimeType;

    protected String size;

    public File(String path, String contents) {
        this.path = path;
        this.contents = contents;
    }

    /**
     * Get file path
     *
     * @return String
     */
    public String getPath() {
        return path;
    }

    /**
     * Set file path
     *
     * @param path
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * Get file contents
     *
     * @return String
     */
    public String getContents() {
        return contents;
    }

    /**
     * Set file contents
     *
     * @param contents
     */
    public void setContents(String contents) {
        this.contents = contents;
    }

    /**
     * Get file name
     *
     * @return String
     */
    public String getName() {
        return name;
    }

    /**
     * Set file name
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get Timestamp
     *
     * @return Date
     */
    public Date getTimestamp() {
        return timestamp;
    }

    /**
     * Set Timestamp
     *
     * @param timestamp
     */
    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * Get Mime Type (File Type)
     *
     * @return mimeType
     */
    public String getMimeType() {
        return mimeType;
    }

    /**
     * Set Mime Type (File Type)
     *
     * @param mimeType
     */
    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    /**
     * Get file size
     *
     * @return String
     */
    public String getSize() {
        return size;
    }

    /**
     * Set file size
     *
     * @param size
     */
    public void setSize(String size) {
        this.size = size;
    }
}

@@ -208,23 +208,19 @@
  String 
-mimeTyp
+siz
 e;%0A%0A    
@@ -220,37 +220,53 @@
 ;%0A%0A    p
-rotected String size;
+ublic File() %7B%0A        super();%0A    %7D
 %0A%0A    pu
@@ -548,24 +548,69 @@
  @param path
+ File path%0A     *%0A     * @return %7B@link File%7D
 %0A     */%0A   
@@ -613,28 +613,28 @@
 %0A    public 
-void
+File
  setPath(Str
@@ -666,24 +666,46 @@
 path = path;
+%0A%0A        return this;
 %0A    %7D%0A%0A    
@@ -894,24 +894,73 @@
 ram contents
+ File contents%0A     *%0A     * @return %7B@link File%7D
 %0A     */%0A   
@@ -963,28 +963,28 @@
 %0A    public 
-void
+File
  setContents
@@ -1028,32 +1028,54 @@
 ents = contents;
+%0A%0A        return this;
 %0A    %7D%0A%0A    /**%0A
@@ -1240,24 +1240,79 @@
  @param name
+ File name File name%0A     *%0A     * @return %7B@link File%7D
 %0A     */%0A   
@@ -1315,28 +1315,28 @@
 %0A    public 
-void
+File
  setName(Str
@@ -1368,24 +1368,46 @@
 name = name;
+%0A%0A        return this;
 %0A    %7D%0A%0A    
@@ -1595,147 +1595,23 @@
 tamp
-%0A     */%0A    public void setTimestamp(Date timestamp) %7B%0A        this.timestamp = timestamp;%0A    %7D%0A%0A    /**%0A     * Get Mime Type (File Type)
+ File timestamp
 %0A   
@@ -1629,24 +1629,28 @@
 @return 
-mimeType
+%7B@link File%7D
 %0A     */
@@ -1665,221 +1665,100 @@
 lic 
-String getMimeType() %7B%0A        return mimeType;%0A    %7D%0A%0A    /**%0A     * Set Mime Type (File Type)%0A     *%0A     * @param mimeType%0A     */%0A    public void setMimeType(String mimeType) %7B%0A        this.mimeType = mimeType
+File setTimestamp(Date timestamp) %7B%0A        this.timestamp = timestamp;%0A%0A        return this
 ;%0A  
@@ -1936,24 +1936,69 @@
  @param size
+ File size%0A     *%0A     * @return %7B@link File%7D
 %0A     */%0A   
@@ -2009,12 +2009,12 @@
 lic 
-void
+File
  set
@@ -2054,21 +2054,43 @@
 size = size;
+%0A%0A        return this;
 %0A    %7D%0A%7D%0A

Remove mimetype and add method chaining