1   /**
2    * JHylaFax - A java client for HylaFAX.
3    *
4    * Copyright (C) 2005 by Steffen Pingel <steffenp@gmx.de>
5    *
6    * This program is free software; you can redistribute it and/or modify
7    * it under the terms of the GNU General Public License as published by
8    * the Free Software Foundation; either version 2 of the License, or
9    * (at your option) any later version.
10   *
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.
15   *
16   * You should have received a copy of the GNU General Public License
17   * along with this program; if not, write to the Free Software
18   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19   */
20  package net.sf.jhylafax.fax;
21  
22  import java.util.Date;
23  
24  /**
25   * Representation of a document.
26   */
27  public class Document {
28  
29  	private Date creationTime;
30  	private int deviceNumber;
31  	private String filename;
32  	private long filesize;
33  	private int groupID;
34  	private long inodeNumber;
35  	private Date lastAccessTime;
36  	private Date lastModificationTime;
37  	private int linkCount;
38  	private String owner;
39  	private int ownerID;
40  	private String permissions;
41  	private int rootDeviceNumber;	
42  		
43  	public Date getCreationTime()
44  	{
45  		return creationTime;
46  	}
47  	
48  	public int getDeviceNumber()
49  	{
50  		return deviceNumber;
51  	}
52  
53  	public String getFilename()
54  	{
55  		return filename;
56  	}
57  	
58  	public long getFilesize()
59  	{
60  		return filesize;
61  	}
62  	
63  	public int getGroupID()
64  	{
65  		return groupID;
66  	}
67  
68  	public long getInodeNumber()
69  	{
70  		return inodeNumber;
71  	}
72  	
73  	public Date getLastAccessTime()
74  	{
75  		return lastAccessTime;
76  	}
77  	
78  	public Date getLastModificationTime()
79  	{
80  		return lastModificationTime;
81  	}
82  	
83  	public int getLinkCount()
84  	{
85  		return linkCount;
86  	}
87  	
88  	public String getOwner()
89  	{
90  		return owner;
91  	}
92  	
93  	public int getOwnerID()
94  	{
95  		return ownerID;
96  	}
97  	
98  	public String getPermissions()
99  	{
100 		return permissions;
101 	}
102 	
103 	public int getRootDeviceNumber()
104 	{
105 		return rootDeviceNumber;
106 	}
107 	
108 	public void setCreationTime(Date creationTime)
109 	{
110 		this.creationTime = creationTime;
111 	}
112 	
113 	public void setDeviceNumber(int deviceNumber)
114 	{
115 		this.deviceNumber = deviceNumber;
116 	}
117 	
118 	public void setFilename(String filename)
119 	{
120 		this.filename = filename;
121 	}
122 	
123 	public void setFilesize(long filesize)
124 	{
125 		this.filesize = filesize;
126 	}
127 	
128 	public void setGroupID(int groupID)
129 	{
130 		this.groupID = groupID;
131 	}
132 	
133 	public void setInodeNumber(long inodeNumber)
134 	{
135 		this.inodeNumber = inodeNumber;
136 	}
137 	
138 	public void setLastAccessTime(Date lastAccessTime)
139 	{
140 		this.lastAccessTime = lastAccessTime;
141 	}
142 	
143 	public void setLastModificationTime(Date lastModificationTime)
144 	{
145 		this.lastModificationTime = lastModificationTime;
146 	}
147 	
148 	public void setLinkCount(int linkCount)
149 	{
150 		this.linkCount = linkCount;
151 	}
152 	
153 	public void setOwner(String owner)
154 	{
155 		this.owner = owner;
156 	}
157 	
158 	public void setOwnerID(int ownerID)
159 	{
160 		this.ownerID = ownerID;
161 	}
162 	
163 	public void setPermissions(String permissions)
164 	{
165 		this.permissions = permissions;
166 	}
167 	
168 	public void setRootDeviceNumber(int rootDeviceNumber)
169 	{
170 		this.rootDeviceNumber = rootDeviceNumber;
171 	}
172 
173 }