PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://mobicents.googlecode.com/
Java | 41 lines | 11 code | 8 blank | 22 comment | 0 complexity | ef539abbe693cd070f78361f3618c8a3 MD5 | raw file
 1package javax.megaco.pkg.DTMFDetPkg;
 2
 3import javax.megaco.pkg.PkgConsts;
 4
 5/**
 6 * The MEGACO DTMF Detect Package inherits all methods of the Package, but
 7 * overrides the getPkgId and getPkgName to define packageid corresponding to
 8 * the DTMF Detect Package. This class also overrides the getExtendedPkgIds to
 9 * define that this package extends MEGACO Tone Detect package.
10 */
11public class DTMFDetPkg extends javax.megaco.pkg.MegacoPkg {
12
13	private int[] extendedPkgIds = new int[] { PkgConsts.TONE_DET_PACKAGE };
14
15	/**
16	 * This method gets the package ids of all the package which the package had
17	 * directly or indirectly extended. Package ids are defined in
18	 * {@link PkgConsts}.
19	 * 
20	 * @return Since this packge extends MEGACO Tone Detect package, this shall
21	 *         return value {@link PkgConsts.TONE_DET_PACKAGE}.
22	 */
23	public int[] getExtendedPkgIds() {
24
25		return extendedPkgIds;
26	}
27
28	/**
29	 * This method return the package Id of the MEGACO package for which the
30	 * object is created. For DTMF Detection Package constant value
31	 * {@link PkgConsts.DTMF_DET_PACKAGE} shall be returned.
32	 * 
33	 * @return Constant value {@link PkgConsts.DTMF_DET_PACKAGE} indicating DTMF
34	 *         Detection Package.
35	 */
36	public int getPkgId() {
37
38		return PkgConsts.DTMF_DET_PACKAGE;
39	}
40
41}