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

http://mobicents.googlecode.com/ · Java · 45 lines · 14 code · 7 blank · 24 comment · 0 complexity · 5a3739330efda2c0b99acc6b831ebd61 MD5 · raw file

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