View Javadoc

1   package net.sf.jpkgmk.prototype;
2   
3   
4   
5   
6   /**
7    * a file to be edited upon installation or removal (may be shared by several packages)
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 PrototypeEntryFileEditable extends PrototypeEntryFile {
14  
15  	/**
16  	 * Constructor taking the mandatory arguments to create a prototype file entry
17  	 * @param entryPath
18  	 */
19  	public PrototypeEntryFileEditable(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 part
27  	 * @param fileClass
28  	 * @param entryPath the target path that this file/directory should have in the created package
29  	 * @param entryPathSource path to the local source file
30  	 * @param perm
31  	 * @param owner
32  	 * @param group
33  	 */
34  	public PrototypeEntryFileEditable(Integer part, String fileClass, String entryPath, String entryPathSource, String perm, String owner, String group, PrototypeEntryCommandDefault entryCommandDefault)
35  	{
36  		super(part, PrototypeEntryType.E, fileClass, entryPath, entryPathSource, perm, owner, group, entryCommandDefault);
37  	}
38  
39  	
40  	public static class PrototypeEntryFileEditableParser extends PrototypeEntryFileParser implements PrototypeEntryParser
41  	{
42  
43  		public PrototypeEntryFileEditableParser()
44  		{
45  			super();
46  		}
47  		
48  	    @Override
49  		protected PrototypeEntry createEntry(Integer part, String fileClass,
50  				String entryPath, String entryPathSource, String mode,
51  				String owner, String group, PrototypeEntryCommandDefault entryCommandDefault) {
52  			
53  			return new PrototypeEntryFileEditable(part, fileClass, entryPath, entryPathSource, mode, owner, group, entryCommandDefault);
54  		}
55  		
56  	}
57  }