View Javadoc

1   package net.sf.jpkgmk.prototype;
2   
3   
4   
5   
6   /**
7    * volatile file (one whose contents are expected to change, like a log file)
8    * @author gommma (gommma AT users.sourceforge.net)
9    * @author Last changed by: $Author: gommma $
10   * @version $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
11   * @since 1.0
12   */
13  public class PrototypeEntryFileVolatile extends PrototypeEntryFile {
14  
15  	/**
16  	 * Constructor taking the mandatory arguments to create a prototype file entry
17  	 * @param entryPath
18  	 */
19  	public PrototypeEntryFileVolatile(String entryPath)
20  	{
21  		this(null, null, entryPath, null, null, null, null, null);
22  	}
23  
24  	/**
25  	 * Full constructor taking all arguments supported for this entry type
26  	 * @param fileClass
27  	 * @param entryPath the target path that this file/directory should have in the created package
28  	 * @param entryPathSource path to the local source file
29  	 * @param mode
30  	 * @param owner
31  	 * @param group
32  	 */
33  	public PrototypeEntryFileVolatile(Integer part, String fileClass, String entryPath, String entryPathSource, String mode, String owner, String group, PrototypeEntryCommandDefault entryCommandDefault)
34  	{
35  		super(part, PrototypeEntryType.V, fileClass, entryPath, entryPathSource, mode, owner, group, entryCommandDefault);
36  	}
37  
38  	
39  	public static class PrototypeEntryFileVolatileParser extends PrototypeEntryFileParser implements PrototypeEntryParser
40  	{
41  
42  		public PrototypeEntryFileVolatileParser()
43  		{
44  			super();
45  		}
46  
47  	    @Override
48  		protected PrototypeEntry createEntry(Integer part, String fileClass,
49  				String entryPath, String entryPathSource, String mode,
50  				String owner, String group, PrototypeEntryCommandDefault entryCommandDefault) {
51  			
52  			return new PrototypeEntryFileVolatile(part, fileClass, entryPath, entryPathSource, mode, owner, group, entryCommandDefault);
53  		}
54  		
55  		
56  	}
57  }