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

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

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