Documentation is available at DuplicateItemIdentifierException.exception.php
- <?PHP
- /**
- * @package org.phptmapi.core
- */
- require_once('TMAPIRuntimeException.exception.php');
- /**
- * 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.
- *
- * @author Johannes Schmidt - t8d <kontakt@t8d.de>
- */
- class DuplicateItemidentifierException extends TMAPIRuntimeException{
- /**
- * Constructor
- * @param object TopicMapObjectInterface $modifiedObject
- * @param object TopicMapObjectInterface $unmodifiedObject
- * @param string $duplicateItemIdentifier
- * @param string $msg
- * @access public
- */
- public function __construct(TopicMapObjectInterface $modifiedObject, TopicMapObjectInterface $unmodifiedObject, $duplicateItemIdentifier, $msg){
- $this->mobj = $modifiedObject;
- $this->umobj = $unmodifiedObject;
- $this->dItemIdentifier = $duplicateItemIdentifier;
- parent::__construct($msg);
- }
- /**
- * getModifiedObject: Returns the object that was tried to modify.
- * @access public
- * @return object TopicMapObjectInterface
- */
- public function getModifiedObject(){
- return $this->mobj;
- }
- /**
- * getUnmodifiedObject: Returns the object that was not modified.
- * @access public
- * @return object TopicMapObjectInterface
- */
- public function getUnmodifiedObject(){
- return $this->umobj;
- }
- /**
- * getItemidentifier: Returns the duplicate item identifier.
- * @access public
- * @return string
- */
- public function getItemidentifier(){
- return $this->dItemIdentifier;
- }
- }
- ?>
Documentation generated on Fri, 30 Jun 2006 13:06:50 +0200 by phpDocumentor 1.3.0RC4