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

http://mobicents.googlecode.com/ · Java · 67 lines · 21 code · 11 blank · 35 comment · 0 complexity · 8db449d74ed0b452e91298c7fae587a6 MD5 · raw file

  1. package javax.megaco.pkg.ContinuityPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgEventItem;
  4. /**
  5. * The MEGACO Completion event class extends the PkgEventItem class. This is a
  6. * final class. This class defines Completion event of MEGACO Continuity
  7. * package. The methods shall define that this event item belongs to the
  8. * Continuity package.
  9. */
  10. public final class ContComplEvt extends PkgEventItem {
  11. /**
  12. * Identifies Completion event of the MEGACO Continuity Package. Its value
  13. * shall be set equal to 0x0005.
  14. */
  15. public static final int CONT_COMPL_EVENT = 0x0005;
  16. private ContinuityPkg itemsPackageId = new ContinuityPkg();
  17. /**
  18. * Constructs a Jain MEGACO Object representing event item of the MEGACO
  19. * Package for Event Completion and Package as Continuity.
  20. */
  21. public ContComplEvt() {
  22. super();
  23. super.itemId = CONT_COMPL_EVENT;
  24. super.eventId = CONT_COMPL_EVENT;
  25. }
  26. /**
  27. * This method is used to get the event identifier from an Event Item
  28. * object. The implementations of this method in this class returns the id
  29. * of the Completion event of Continuity Package.
  30. *
  31. * @return It shall return {@link CONT_COMPL_EVENT}.
  32. */
  33. public int getEventId() {
  34. return super.eventId;
  35. }
  36. /**
  37. * This method is used to get the item identifier from an Item object. The
  38. * implementations of this method in this class returns the id of the
  39. * Completion event of Continuity Package.
  40. *
  41. * @return It shall return {@link CONT_COMPL_EVENT}.
  42. */
  43. public int getItemId() {
  44. return super.itemId;
  45. }
  46. /**
  47. * This method gets the package id to which the item belongs. Since the
  48. * Completion event is defined in the Continuity Package of MEGACO protocol,
  49. * this method returns the ContinuityPkg class object.
  50. *
  51. * @return The package is ContinuityPkg .
  52. */
  53. public MegacoPkg getItemsPackageId() {
  54. return itemsPackageId;
  55. }
  56. }