PageRenderTime 31ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://mobicents.googlecode.com/
Java | 60 lines | 22 code | 11 blank | 27 comment | 0 complexity | e66bfebeeb593536758e8dd9b45a8cf0 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.DTMFGenPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgSignalItem;
  4. /**
  5. * The MEGACO DTMF character 8 signal class extends the PkgSignalItem class.
  6. * This is a final class. This class defines DTMF character 8 signal of MEGACO
  7. * DTMF package. The methods shall define that this signal item belongs to the
  8. * DTMF package.
  9. */
  10. public final class DTMFGenD8Signal extends PkgSignalItem {
  11. /**
  12. * Identifies signal id DTMF character 8 of the MEGACO DTMF Generator
  13. * Package. Its value shall be set equal to 0x0018.
  14. */
  15. public static final int DTMF_GEN_D8_SIGNAL = 0x0018;
  16. private DTMFGenPkg itemsPkgId = new DTMFGenPkg();
  17. /**
  18. * Constructs a MEGACO signal item with signal id as DTMF character 8.
  19. */
  20. public DTMFGenD8Signal() {
  21. super();
  22. super.signalId = DTMF_GEN_D8_SIGNAL;
  23. super.itemId = DTMF_GEN_D8_SIGNAL;
  24. }
  25. /**
  26. * This method is used to get the signal identifier from an Signal Item
  27. * object. The implementations of this method in this class returns the id
  28. * of the DTMF character 8 signal of DTMF Generator Package.
  29. *
  30. * @return It shall return {@link DTMF_GEN_D8_SIGNAL}.
  31. */
  32. public int getItemId() {
  33. return super.itemId;
  34. }
  35. /**
  36. * This method is used to get the item identifier from an Item object. The
  37. * implementations of this method in this class returns the id of the DTMF
  38. * character 8 signal of DTMF Generator Package.
  39. *
  40. * @return It shall return {@link DTMF_GEN_D8_SIGNAL}.
  41. */
  42. public int getSignalId() {
  43. return super.signalId;
  44. }
  45. @Override
  46. public MegacoPkg getItemsPkgId() {
  47. return itemsPkgId;
  48. }
  49. }