PageRenderTime 35ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/BaseRootPkg/RootNormMGCExecTimePrpt.java

http://mobicents.googlecode.com/
Java | 95 lines | 32 code | 13 blank | 50 comment | 0 complexity | ca0dffe52fc924f026d2db9343a39364 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.BaseRootPkg;
  2. import javax.megaco.message.DescriptorType;
  3. import javax.megaco.pkg.MegacoPkg;
  4. import javax.megaco.pkg.ParamValueType;
  5. import javax.megaco.pkg.PkgPrptyItem;
  6. /**
  7. * The MEGACO NormMGCExecTime property class extends the PkgPrptyItem class.
  8. * This is a final class. This class defines NormMGCExecTime property of MEGACO
  9. * Root package. The methods shall define that this property item belongs to the
  10. * Root package.
  11. */
  12. public final class RootNormMGCExecTimePrpt extends PkgPrptyItem {
  13. /**
  14. *Identifies NormMGCExecTime property of the MEGACO Base Root Package. Its
  15. * value shall be set equal to 0x0004.
  16. */
  17. public static final int ROOT_NORM_MGC_EXEC_TIME_PRPT = 0x0004;
  18. protected int[] itemsDescriptorIds = null;
  19. /**
  20. * Constructs a Jain MEGACO Object representing property item of the MEGACO
  21. * Package for property NormMGCExecTime and Package as Base Root.
  22. */
  23. public RootNormMGCExecTimePrpt() {
  24. super();
  25. super.propertyId = ROOT_NORM_MGC_EXEC_TIME_PRPT;
  26. super.itemId = ROOT_NORM_MGC_EXEC_TIME_PRPT;
  27. super.packageId = new BaseRootPkg();
  28. super.itemValueType = ParamValueType.M_INTEGER;
  29. this.itemsDescriptorIds = new int[] { DescriptorType.M_TERMINATION_STATE_DESC };
  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 Normal
  34. * MGC Execution Time property of ROOT Package.
  35. *
  36. * @return It shall return {@link ROOT_NORM_MGC_EXEC_TIME_PRPT}
  37. */
  38. public int getItemId() {
  39. return super.itemId;
  40. }
  41. /**
  42. * The method can be used to get the type of the value as defined in the
  43. * MEGACO packages. These could be one of string or enumerated value or
  44. * integer or double value or boolean.
  45. *
  46. * @return It returns {@link ParamValueType.INTEGER}
  47. * indicating that the parameter is a double.
  48. */
  49. public int getItemValueType() {
  50. return super.itemValueType;
  51. }
  52. /**
  53. * This method is used to get the property identifier from an Property Item
  54. * object. The implementations of this method in this class returns the id
  55. * of the Normal MGC Execution Time property of ROOT Package.
  56. *
  57. * @return It shall return {@link ROOT_NORM_MGC_EXEC_TIME_PRPT}
  58. */
  59. public int getPropertyId() {
  60. return super.propertyId;
  61. }
  62. /**
  63. * This method gets the package id to which the item belongs. Since the
  64. * Normal MGC Execution Time property is defined in the Base ROOT Package of
  65. * MEGACO protocol, this method returns the value {@link BASE_ROOT_PACKAGE}
  66. * constant. This constant is defined in the PkgConsts class.
  67. */
  68. public MegacoPkg getItemsPkgId() {
  69. return this.packageId;
  70. }
  71. /**
  72. * The method can be used to get the descriptor ids corresponding to the
  73. * parameters to which the parameter can be set.
  74. *
  75. * @return This parameter can be present in Event descriptor. It shall thus
  76. * return a value DescriptorType.M_TERMINATION_STATE_DESC as a part
  77. * of integer vector.
  78. */
  79. public int[] getDescriptorIds() {
  80. return this.itemsDescriptorIds;
  81. }
  82. }