PageRenderTime 70ms CodeModel.GetById 65ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

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