1 19 package org.openharmonise.vfs.event; 20 21 import org.openharmonise.vfs.*; 22 23 29 public class VirtualFileEvent { 30 31 34 private String m_sPath = null; 35 36 39 private AbstractVirtualFileSystem m_vfs = null; 40 41 private int m_nEventSubType = 0; 42 43 private String m_sChildPath = null; 44 45 48 private String m_sEventType = null; 49 50 53 public static String FILE_LOCKED = "FILE_LOCKED"; 54 55 58 public static String FILE_UNLOCKED = "FILE_UNLOCKED"; 59 60 63 public static String FILE_DELETED = "FILE_DELETED"; 64 65 68 public static String FILE_MOVED = "FILE_MOVED"; 69 70 73 public static String FILE_COPIED = "FILE_COPIED"; 74 75 78 public static String FILE_MEMBERS_CHANGED = "FILE_MEMBERS_CHANGED"; 79 80 83 public static String FILE_METADATA_CHANGED = "FILE_METADATA_CHANGED"; 84 85 88 public static String FILE_RENAMED = "FILE_RENAMED"; 89 90 93 public static String FILE_CONTENT_CHANGED = "FILE_CONTENT_CHANGED"; 94 95 98 public static String FILE_CHANGES_DISCARDED = "FILE_CHANGES_DISCARDED"; 99 100 103 public static String FILE_SYNCHED = "FILE_SYNCHED"; 104 105 108 public static String FILE_CHECKED_IN = "FILE_CHECKED_IN"; 109 110 117 public VirtualFileEvent( 118 String sPath, 119 AbstractVirtualFileSystem vfs, 120 String sEventType) { 121 super(); 122 123 this.m_sPath = sPath; 124 this.m_vfs = vfs; 125 this.m_sEventType = sEventType; 126 } 127 128 133 public String getEventType() { 134 return this.m_sEventType; 135 } 136 137 142 public String getPath() { 143 return this.m_sPath; 144 } 145 146 151 public AbstractVirtualFileSystem getVFS() { 152 return this.m_vfs; 153 } 154 155 public void setSubType(int nSubType) { 156 this.m_nEventSubType = nSubType; 157 } 158 159 public int getSubType() { 160 return this.m_nEventSubType; 161 } 162 163 public void setChildPath(String sChildPath) { 164 this.m_sChildPath = sChildPath; 165 } 166 167 public String getChildPath() { 168 return this.m_sChildPath; 169 } 170 171 } 172 | Popular Tags |