PageRenderTime 37ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://mobicents.googlecode.com/
Java | 62 lines | 20 code | 11 blank | 31 comment | 0 complexity | 55ea31b9b6d66de6b9eb377ee789565d MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  1. package javax.megaco.pkg.DTMFDetPkg;
  2. import javax.megaco.pkg.PkgEventItem;
  3. /**
  4. * The MEGACO Digitmap Completion event class extends the PkgEventItem class.
  5. * This is a final class. This class defines Digitmap Completion event of MEGACO
  6. * DTMF Detection package. The methods shall define that this event item belongs
  7. * to the DTMF Detection package.
  8. */
  9. public final class DTMFDetCeEvt extends PkgEventItem {
  10. /**
  11. * Identifies Digitmap Completion Event of the MEGACO DTMF Detection
  12. * Package. Its value shall be set equal to 0x0001.
  13. */
  14. public static final int DTMF_DET_CE_EVENT = 0x0001;
  15. private DTMFDetPkg itemsPackageId = new DTMFDetPkg();
  16. public DTMFDetCeEvt() {
  17. super();
  18. super.itemId = DTMF_DET_CE_EVENT;
  19. super.eventId = DTMF_DET_CE_EVENT;
  20. }
  21. /**
  22. * This method is used to get the event identifier from an Event Item
  23. * object. The implementations of this method in this class returns the id
  24. * of the Completion event of DTMF Detect Package.
  25. *
  26. * @return It shall return {@link DTMF_DET_CE_EVENT}.
  27. */
  28. public int getEventId() {
  29. return super.eventId;
  30. }
  31. /**
  32. * This method is used to get the item identifier from an Item object. The
  33. * implementations of this method in this class returns the id of the
  34. * Completion event of DTMF Detect Package.
  35. *
  36. * @return It shall return {@link DTMF_DET_CE_EVENT}.
  37. */
  38. public int getItemId() {
  39. return super.itemId;
  40. }
  41. /**
  42. * This method gets the package to which the item belongs. Since the
  43. * Completion event is defined in the DTMF Detect Package of MEGACO
  44. * protocol, this method returns the DTMFDetPkg class object.
  45. *
  46. * @return
  47. */
  48. public DTMFDetPkg getItemsPackageId() {
  49. return itemsPackageId;
  50. }
  51. }