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

http://mobicents.googlecode.com/ · Java · 50 lines · 15 code · 8 blank · 27 comment · 0 complexity · 6594f1c5c49c94541c5ac11eef8f0db8 MD5 · raw file

  1. package javax.megaco.pkg.ContinuityPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. /**
  5. *
  6. * The MEGACO Continuity Package inherits all methods of the Package, but
  7. * overrides the getPkgId and getPkgName to define packageid corresponding to
  8. * the Continuity Package. This class also overrides the getExtendedPkgIds to
  9. * define that there are no packages that this package extends.
  10. */
  11. public class ContinuityPkg extends MegacoPkg {
  12. private int[] extendedPkgIds = null;
  13. /**
  14. * Constructs a derived class of Continuity Package that extends the Package
  15. */
  16. public ContinuityPkg() {
  17. super();
  18. // TODO Auto-generated constructor stub
  19. }
  20. /**
  21. * This method gets the package ids of all the package which the package had
  22. * directly or indirectly extended. Package ids are defined in
  23. * {@link PkgConsts}.
  24. *
  25. * @return Since this packge extends no other package, this shall return a
  26. * NULL value..
  27. */
  28. public int[] getExtendedPkgIds() {
  29. return extendedPkgIds;
  30. }
  31. /**
  32. *This method return the package Id of the MEGACO package for which the
  33. * object is created. For Continuity Package constant value
  34. * {@link PkgConsts.CONTINUITY_PACKAGE} shall be returned.
  35. *
  36. * @return Constant value {@link PkgConsts.CONTINUITY_PACKAGE} indicating
  37. * Continuity Package..
  38. */
  39. public int getPkgId() {
  40. return PkgConsts.CALL_PROG_TONE_DET_PACKAGE;
  41. }
  42. }