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

http://mobicents.googlecode.com/ · Java · 65 lines · 21 code · 9 blank · 35 comment · 0 complexity · 1445c4f0b4efd892f6eeed498a336bd8 MD5 · raw file

  1. package javax.megaco.pkg.RTPPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgEventItem;
  4. /**
  5. * The MEGACO Payload Transition event class extends the PkgEventItem class.
  6. * This is a final class. This class defines Payload Transition event of MEGACO
  7. * RTP package. The methods shall define that this event item belongs to the RTP
  8. * package.
  9. */
  10. public class RTPPltransEvt extends PkgEventItem {
  11. /**
  12. * Identifies Payload Transition event of the MEGACO RTP Package. Its value
  13. * shall be set equal to 0x0001.
  14. */
  15. public static final int RTP_PLTRANS_EVENT = 0x0001;
  16. /**
  17. * Constructs a Jain MEGACO Object representing event Item of the MEGACO
  18. * Package for event Payload Transition and package as RTP.
  19. */
  20. public RTPPltransEvt() {
  21. super();
  22. super.eventId = RTP_PLTRANS_EVENT;
  23. super.itemId = RTP_PLTRANS_EVENT;
  24. super.packageId = new RTPPkg();
  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 Payload Transition event of RTP Package.
  30. *
  31. * @return It shall return {@link RTP_PLTRANS_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. * Payload Transition event of RTP Package.
  40. *
  41. * @return It shall return {@link RTP_PLTRANS_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. * Payload Transition event is defined in the RTP Package of MEGACO
  49. * protocol, this method returns the RTPPkg class object.
  50. *
  51. * @return The package is RTPPkg.
  52. */
  53. public MegacoPkg getItemsPkgId() {
  54. return super.getItemsPkgId();
  55. }
  56. }