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

http://mobicents.googlecode.com/ · Java · 39 lines · 11 code · 5 blank · 23 comment · 0 complexity · 8abdc5aad3e7685a00dcc7eac4009e8d MD5 · raw file

  1. package javax.megaco.pkg.ToneGenPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. /**
  5. * The MEGACO Tone Generator Package inherits all methods of the Package, but
  6. * overrides the getPkgId and getPkgName to define packageid corresponding to
  7. * the Tone Generator Package. This class also overrides the getExtendedPkgIds
  8. * to define that there are no packages that this package extends.
  9. */
  10. public class ToneGenPkg extends MegacoPkg {
  11. /**
  12. * This method gets the package ids of all the package which the package had
  13. * directly or indirectly extended. Package ids are defined in
  14. * {@link PkgConsts}.
  15. *
  16. * @return Since this packge extends no other package, this shall return a
  17. * NULL value.
  18. */
  19. public final int[] getExtendedPkgIds() {
  20. // TODO Auto-generated method stub
  21. return null;
  22. }
  23. /**
  24. * This method return the package Id of the MEGACO package for which the
  25. * object is created. For Tone Generator Package constant value
  26. * {@link TONE_GEN_PACKAGE} shall be returned.
  27. *
  28. * @return Constant value {@link TONE_GEN_PACKAGE} indicating Tone Generator
  29. * Package.
  30. */
  31. public int getPkgId() {
  32. return PkgConsts.TONE_GEN_PACKAGE;
  33. }
  34. }