/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
- package javax.megaco.pkg.AnalogLineSPkg;
-
- import javax.megaco.pkg.MegacoPkg;
- import javax.megaco.pkg.PkgConsts;
- import javax.megaco.pkg.ToneGenPkg.ToneGenPkg;
-
- /**
- * The MEGACO Analog Line Supervision package inherits all methods of the
- * Package, but overrides the getPkgId and getPkgName to define packageid
- * corresponding to the Analog Line Supervision Package. This class also
- * overrides the getExtendedPkgIds to define that there are no packages that
- * this package extends.
- *
- */
- public class AnalogLineSPkg extends MegacoPkg {
-
- /**
- * This method gets the package ids of all the package which the package had
- * directly or indirectly extended. Package ids are defined in
- * {@link PkgConsts}.
- *
- * @return Since this packge extends no other package, this shall return a
- * NULL value.
- */
- public int[] getExtendedPkgIds() {
-
- return null;
- }
-
- /**
- * This method return the package Id of the MEGACO package for which the
- * object is created. For Tone Detection Package constant value
- * {@link ANALOG_LINE_PACKAGE} shall be returned.
- *
- * @return Constant value {@link ANALOG_LINE_PACKAGE} indicating Analog Line
- * Supervision Package.
- */
- public int getPkgId() {
-
- return PkgConsts.ANALOG_LINE_PACKAGE;
- }
-
- }