XMLImportFile.java
01 package com.bea.medrec.value;
02 
03 import java.util.Calendar;
04 
05 /**
06  <p>Represents information about an XML import file.</p>
07  *
08  @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
09  */
10 public final class XMLImportFile extends BaseVO {
11   // Instance Variables
12   private String filename = null;
13   private String path = null;
14   private Calendar date = null;
15   private String size = null;
16 
17   // Constructors
18   public XMLImportFile() {
19   }
20 
21   public XMLImportFile(String filename,
22                        String path,
23                        Calendar date,
24                        long size) {
25     this.filename = filename;
26     this.path = path;
27     this.date = date;
28     this.size = String.valueOf(size);
29   }
30 
31   // Getters
32   public String getFilename() {
33     return (this.filename);
34   }
35 
36   public String getPath() {
37     return (this.path);
38   }
39 
40   public Calendar getDate() {
41     return (this.date);
42   }
43 
44   public String getSize() {
45     return (this.size);
46   }
47 
48   // Setters
49   public void setFilename(String filename) {
50     this.filename = filename;
51   }
52 
53   public void setPath(String path) {
54     this.path = path;
55   }
56 
57   public void setDate(Calendar date) {
58     this.date = date;
59   }
60 
61   public void setSize(String size) {
62     this.size = size;
63   }
64 
65   public String toString() {
66     StringBuffer str = new StringBuffer();
67     str.append("XMLImportFile [");
68     str.append("Filename: "+this.filename);
69     str.append(" | Path: "+this.path);
70     str.append(" | Date: "+super.getDisplayDate(this.date));
71     str.append(" | Size: "+this.size);
72     str.append("]");
73 
74     return str.toString();
75   }
76 }