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

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

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