01: package org.drools.scm;
02:
03: import java.io.File;
04: import java.util.Date;
05:
06: import org.tmatesoft.svn.core.SVNDirEntry;
07: import org.tmatesoft.svn.core.SVNNodeKind;
08:
09: public class DefaultScmEntry implements ScmEntry {
10: // private SVNDirEntry entry;
11:
12: private String author;
13: private Date date;
14: private String name;
15: private String path;
16: private long revision;
17: private long size;
18: private int type;
19:
20: public DefaultScmEntry() {
21:
22: }
23:
24: public int getType() {
25: return type;
26: }
27:
28: public void setType(int type) {
29: this .type = type;
30: }
31:
32: public String getAuthor() {
33: return author;
34: }
35:
36: public void setAuthor(String author) {
37: this .author = author;
38: }
39:
40: public Date getDate() {
41: return date;
42: }
43:
44: public void setDate(Date date) {
45: this .date = date;
46: }
47:
48: public String getName() {
49: return name;
50: }
51:
52: public void setName(String name) {
53: this .name = name;
54: }
55:
56: public String getPath() {
57: return path;
58: }
59:
60: public void setPath(String path) {
61: this .path = path;
62: }
63:
64: public long getRevision() {
65: return revision;
66: }
67:
68: public void setRevision(long revision) {
69: this .revision = revision;
70: }
71:
72: public long getSize() {
73: return size;
74: }
75:
76: public void setSize(long size) {
77: this .size = size;
78: }
79:
80: public boolean isFile() {
81: return this .type == ScmEntry.FILE;
82: }
83:
84: public boolean isDirectory() {
85: return this.type == ScmEntry.DIRECTORY;
86: }
87:
88: }
|