/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

  1. package javax.megaco.pkg.AnalogLineSPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. import javax.megaco.pkg.ToneGenPkg.ToneGenPkg;
  5. /**
  6. * The MEGACO Analog Line Supervision package inherits all methods of the
  7. * Package, but overrides the getPkgId and getPkgName to define packageid
  8. * corresponding to the Analog Line Supervision Package. This class also
  9. * overrides the getExtendedPkgIds to define that there are no packages that
  10. * this package extends.
  11. *
  12. */
  13. public class AnalogLineSPkg extends MegacoPkg {
  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 int[] getExtendedPkgIds() {
  23. return null;
  24. }
  25. /**
  26. * This method return the package Id of the MEGACO package for which the
  27. * object is created. For Tone Detection Package constant value
  28. * {@link ANALOG_LINE_PACKAGE} shall be returned.
  29. *
  30. * @return Constant value {@link ANALOG_LINE_PACKAGE} indicating Analog Line
  31. * Supervision Package.
  32. */
  33. public int getPkgId() {
  34. return PkgConsts.ANALOG_LINE_PACKAGE;
  35. }
  36. }