Source for file DuplicateItemIdentifierException.exception.php

Documentation is available at DuplicateItemIdentifierException.exception.php

  1. <?PHP
  2. /**
  3. * @package org.phptmapi.core
  4. */
  5. require_once('TMAPIRuntimeException.exception.php');
  6. /**
  7. * public class DuplicateItemidentifierException: Exception is raised when an item identifier is added to a TopicMapObjectInterface, that already exists in this topic map. It is not thrown when both topic map objects are instance of TopicInterface. In this case a TopicsMustMergeException is thrown only in TMAPI implementations, that do not support the "Automatic Merging" feature (http://tmapi.org/features/automerge). If the implementation does support automatic merging, then the merge should take place transparently to the API user.
  8. *
  9. * @author Johannes Schmidt - t8d <kontakt@t8d.de>
  10. */
  11. class DuplicateItemidentifierException extends TMAPIRuntimeException{
  12. /**
  13. * Constructor
  14. * @param object TopicMapObjectInterface $modifiedObject
  15. * @param object TopicMapObjectInterface $unmodifiedObject
  16. * @param string $duplicateItemIdentifier
  17. * @param string $msg
  18. * @access public
  19. */
  20. public function __construct(TopicMapObjectInterface $modifiedObject, TopicMapObjectInterface $unmodifiedObject, $duplicateItemIdentifier, $msg){
  21. $this->mobj = $modifiedObject;
  22. $this->umobj = $unmodifiedObject;
  23. $this->dItemIdentifier = $duplicateItemIdentifier;
  24. parent::__construct($msg);
  25. }
  26. /**
  27. * getModifiedObject: Returns the object that was tried to modify.
  28. * @access public
  29. * @return object TopicMapObjectInterface
  30. */
  31. public function getModifiedObject(){
  32. return $this->mobj;
  33. }
  34. /**
  35. * getUnmodifiedObject: Returns the object that was not modified.
  36. * @access public
  37. * @return object TopicMapObjectInterface
  38. */
  39. public function getUnmodifiedObject(){
  40. return $this->umobj;
  41. }
  42. /**
  43. * getItemidentifier: Returns the duplicate item identifier.
  44. * @access public
  45. * @return string
  46. */
  47. public function getItemidentifier(){
  48. return $this->dItemIdentifier;
  49. }
  50. }
  51. ?>

Documentation generated on Fri, 30 Jun 2006 13:06:50 +0200 by phpDocumentor 1.3.0RC4