View Javadoc

1   package net.sf.jpkgmk.prototype;
2   
3   /**
4    * @author gommma (gommma AT users.sourceforge.net)
5    * @author Last changed by: $Author: gommma $
6    * @version $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
7    * @since 1.0
8    */
9   public class PrototypeEntryBlockDevice extends AbstractPrototypeEntryDevice {
10  
11  	/**
12  	 * Constructor taking the mandatory arguments to create a prototype file entry
13  	 * @param entryPath
14  	 */
15  	public PrototypeEntryBlockDevice(String entryPath)
16  	{
17  		this(null, null, entryPath, null, null, null, null, null, null);
18  	}
19  
20  	/**
21  	 * Full constructor taking all arguments supported for this entry type
22  	 * @param part
23  	 * @param fileClass
24  	 * @param entryPath path to the file or directory
25  	 * @param major
26  	 * @param minor
27  	 * @param mode
28  	 * @param owner
29  	 * @param group
30  	 */
31  	public PrototypeEntryBlockDevice(Integer part, String fileClass, String entryPath, Integer major, Integer minor, String mode, String owner, String group, PrototypeEntryCommandDefault entryCommandDefault)
32  	{
33  		super(part, PrototypeEntryType.B, fileClass, entryPath, major, minor, mode, owner, group, entryCommandDefault);
34  	}
35  
36  	
37  	
38  	public static class PrototypeEntryBlockDeviceParser extends AbstractPrototypeEntryDeviceParser
39  	{
40  
41  	    @Override
42  		protected AbstractPrototypeEntryDevice createEntry(String fileClass,
43  				String entryPath, Integer major, Integer minor, String mode,
44  				String owner, String group,
45  				PrototypeEntryCommandDefault entryCommandDefault) {
46  			PrototypeEntryBlockDevice entry = new PrototypeEntryBlockDevice(null, fileClass, entryPath, major, minor, mode, owner, group, entryCommandDefault);
47  			return entry;
48  		}
49  
50  			
51  	}
52  	
53  	
54  }