PageRenderTime 42ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://mobicents.googlecode.com/
Java | 65 lines | 21 code | 9 blank | 35 comment | 0 complexity | 0ff7cac8ee6f915aa9764857199194d6 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.AnalogLineSPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgEventItem;
  4. /**
  5. * The MEGACO Flash Hook event class extends the PkgEventItem class. This is a
  6. * final class. This class defines Flash Hook event of Analog Line Supervision
  7. * package. The methods shall define that this event item belongs to the Analog
  8. * Line Supervision package.
  9. */
  10. public final class AnalogLineSFlashEvt extends PkgEventItem {
  11. /**
  12. * Identifies Flash Hook event of the MEGACO Analog Line Supervision
  13. * Package. Its value shall be set equal to 0x0006.
  14. */
  15. public static final int ANALOG_LINE_FLASH_EVENT = 0x0006;
  16. /**
  17. * Constructs a Jain MEGACO Object representing event Item of the MEGACO
  18. * Package for event FlashHook and package as Analog Line Supervision.
  19. */
  20. public AnalogLineSFlashEvt() {
  21. super();
  22. super.itemId = ANALOG_LINE_FLASH_EVENT;
  23. super.eventId = ANALOG_LINE_FLASH_EVENT;
  24. super.packageId = new AnalogLineSPkg();
  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 Flash Hook event of Analog Line Supervision Package.
  30. *
  31. * @return It shall {@link ANALOG_LINE_FLASH_EVENT}.
  32. */
  33. public int getEventId() {
  34. return super.itemId;
  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 Flash
  39. * Hook event of Analog Line Supervision Package.
  40. *
  41. * @return It shall return {@link ANALOG_LINE_FLASH_EVENT}.
  42. */
  43. public int getItemId() {
  44. return super.itemId;
  45. }
  46. /**
  47. * This method gets the package to which the item belongs. Since the Flash
  48. * Hook event is defined in the Analog Line Supervision Package of MEGACO
  49. * protocol, this method returns the AnalogLineSPkg class object.
  50. *
  51. * @return The package is {@link AnalogLineSPkg}.
  52. */
  53. public MegacoPkg getItemsPkgId() {
  54. return super.packageId;
  55. }
  56. }