PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/BaseRootPkg/BaseRootPkg.java

http://mobicents.googlecode.com/
Java | 45 lines | 14 code | 7 blank | 24 comment | 0 complexity | 5a3739330efda2c0b99acc6b831ebd61 MD5 | raw file
 1package javax.megaco.pkg.BaseRootPkg;
 2
 3import javax.megaco.pkg.MegacoPkg;
 4import javax.megaco.pkg.PkgConsts;
 5
 6/**
 7 * The MEGACO Base Root inherits all methods of the Package, but overrides the
 8 * getPkgId and getPkgName to define packageid corresponding to the Base Root
 9 * Package. This class also overrides the getExtendedPkgIds to define that there
10 * are no packages that this package extends.
11 * 
12 */
13public class BaseRootPkg extends MegacoPkg {
14
15	/**
16	 * Constructs a derived class of Base Root Package that extends the Package
17	 */
18	public BaseRootPkg() {
19		super();
20		// TODO Auto-generated constructor stub
21	}
22
23	/**
24	 * This method gets the package ids of all the package which the package had
25	 * directly or indirectly extended. Package ids are defined in
26	 * {@link PkgConsts}.
27	 */
28	public final int[] getExtendedPkgIds() {
29
30		return null;
31	}
32
33	/**
34	 * This method return the package Id of the MEGACO package for which the
35	 * object is created. For Base ROOT Package constant value
36	 * {@link BASE_ROOT_PACKAGE} shall be returned.
37	 * 
38	 * @return Constant value {@link BASE_ROOT_PACKAGE} indicating Base ROOT
39	 *         Package.
40	 */
41	public final int getPkgId() {
42		return PkgConsts.BASE_ROOT_PACKAGE;
43	}
44
45}