View Javadoc

1   package net.sf.jpkgmk.pkgmap;
2   
3   
4   /**
5    * @author gommma (gommma AT users.sourceforge.net)
6    * @author Last changed by: $Author: gommma $
7    * @version $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
8    * @since 1.0
9    */
10  public class PkgMapEntryPipe extends AbstractPkgMapEntry {
11  
12  	/**
13  	 * Constructor taking the mandatory arguments to create a file entry
14  	 * @param entryPath
15  	 */
16  	public PkgMapEntryPipe(String entryPath)
17  	{
18  		this(null, null, entryPath, null, null, null);
19  	}
20  
21  	/**
22  	 * Full constructor taking all arguments supported for this entry type
23  	 * @param part
24  	 * @param fileClass
25  	 * @param path path to the file or directory
26  	 * @param mode
27  	 * @param owner
28  	 * @param group
29  	 */
30  	public PkgMapEntryPipe(Integer part, String fileClass, String path, String mode, String owner, String group)
31  	{
32  		super(part, PkgMapEntryType.PIPE, fileClass, path, null, null, null, mode, owner, group);
33  		
34  		// Mandatory parameter check
35  		if(path == null) {
36  			throw new NullPointerException("The parameter 'entryPath' must not be null");
37  		}
38  		if (getEntryClass() == null) {
39  			throw new NullPointerException("The parameter 'fileClass' must not be null");
40  		}
41  	}
42  
43  }