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

http://mobicents.googlecode.com/ · Java · 55 lines · 14 code · 9 blank · 32 comment · 0 complexity · 8ce98a33f752e4d98fe5ef7842b189b4 MD5 · raw file

  1. /**
  2. * Start time:17:09:08 2009-02-17<br>
  3. * Project: mobicents-jain-megaco-stack<br>
  4. *
  5. * @author <a href="mailto:baranowb@gmail.com">baranowb - Bartosz Baranowski
  6. * </a>
  7. * @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
  8. */
  9. package javax.megaco.pkg.GenericPkg;
  10. import javax.megaco.pkg.MegacoPkg;
  11. import javax.megaco.pkg.PkgConsts;
  12. /**
  13. * The MEGACO Generic package inherits all methods of the Package, but overrides
  14. * the getPkgId and getPkgName to define packageid corresponding to the Generic
  15. * Package. This class also overrides the getExtendedPkgIds to define that there
  16. * are no packages that this package extends.
  17. */
  18. public class GenericPkg extends MegacoPkg {
  19. /**
  20. * Constructs a MEGACO Generic Package.
  21. */
  22. public GenericPkg() {
  23. super();
  24. }
  25. /**
  26. * This method gets the package ids of all the package which the package had
  27. * directly or indirectly extended. Package ids are defined in PkgConsts.
  28. *
  29. * @return Since this packge extends no other package, this shall return a
  30. * NULL value.
  31. */
  32. public final int[] getExtendedPkgIds() {
  33. return null;
  34. }
  35. /**
  36. * This method return the package Id of the MEGACO package for which the
  37. * object is created. For Generic Package constant value GENERIC_PACKAGE
  38. * shall be returned.
  39. *
  40. * @return Constant value {@link PkgConsts.GENERIC_PACKAGE} indicating
  41. * Generic Package.
  42. */
  43. public final int getPkgId() {
  44. return PkgConsts.GENERIC_PACKAGE;
  45. }
  46. }