/**
  * Sets robot property value.
  * 
  * @param robot $robot robot
  * @param string $name property name
  * @param string $value property value
  * @param boolean $append true if value should be appended to existing value, false otherwise
  */
 function setRobotProperty($robot, $name, $value, $append)
 {
     if (!isset($robot) || !isset($name) || !isset($value)) {
         return;
     }
     $value = trim($value);
     if ($this->startsWith($name, 'robot-id')) {
         $robot->setId($value);
     } else {
         if ($this->startsWith($name, 'robot-name')) {
             $robot->setName($value);
         } else {
             if ($this->startsWith($name, 'robot-cover-url')) {
                 $robot->setCoverUrl($value);
             } else {
                 if ($this->startsWith($name, 'robot-details-url')) {
                     $robot->setDetailsUrl($value);
                 } else {
                     if ($this->startsWith($name, 'robot-owner-name')) {
                         $robot->setOwnerName($value);
                     } else {
                         if ($this->startsWith($name, 'robot-owner-url')) {
                             $robot->setOwnerUrl($value);
                         } else {
                             if ($this->startsWith($name, 'robot-owner-email')) {
                                 $robot->setOwnerEmail($value);
                             } else {
                                 if ($this->startsWith($name, 'robot-status')) {
                                     $robot->setStatus($value);
                                 } else {
                                     if ($this->startsWith($name, 'robot-purpose')) {
                                         $robot->setPurpose($value);
                                     } else {
                                         if ($this->startsWith($name, 'robot-type')) {
                                             $robot->setType($value);
                                         } else {
                                             if ($this->startsWith($name, 'robot-platform')) {
                                                 $robot->setPlatform($value);
                                             } else {
                                                 if ($this->startsWith($name, 'robot-availability')) {
                                                     $robot->setAvailability($value);
                                                 } else {
                                                     if ($this->startsWith($name, 'robot-exclusion-useragent')) {
                                                         $robot->setExclusionUserAgent($value);
                                                     } else {
                                                         if ($this->startsWith($name, 'robot-exclusion')) {
                                                             $robot->setExclusion($value);
                                                         } else {
                                                             if ($this->startsWith($name, 'robot-noindex')) {
                                                                 $robot->setNoindex($value);
                                                             } else {
                                                                 if ($this->startsWith($name, 'robot-host')) {
                                                                     $robot->setHost($value);
                                                                 } else {
                                                                     if ($this->startsWith($name, 'robot-from')) {
                                                                         $robot->setFrom($value);
                                                                     } else {
                                                                         if ($this->startsWith($name, 'robot-useragent')) {
                                                                             $robot->setUserAgent($value);
                                                                         } else {
                                                                             if ($this->startsWith($name, 'robot-language')) {
                                                                                 $robot->setLanguage($value);
                                                                             } else {
                                                                                 if ($this->startsWith($name, 'robot-description')) {
                                                                                     $description = $robot->getDescription();
                                                                                     if (append && isset($description)) {
                                                                                         $robot->setDescription($description . ' ' . $value);
                                                                                     } else {
                                                                                         $robot->setDescription($value);
                                                                                     }
                                                                                 } else {
                                                                                     if ($this->startsWith($name, 'robot-history')) {
                                                                                         $history = $robot->getHistory();
                                                                                         if (append && isset($history)) {
                                                                                             $robot->setHistory($history . ' ' . $value);
                                                                                         } else {
                                                                                             $robot->setHistory($value);
                                                                                         }
                                                                                     } else {
                                                                                         if ($this->startsWith($name, 'robot-environment')) {
                                                                                             $robot->setEnvironment($value);
                                                                                         } else {
                                                                                             if ($this->startsWith($name, 'modified-date')) {
                                                                                                 $robot->setModifiedDate($value);
                                                                                             } else {
                                                                                                 if ($this->startsWith($name, 'modified-by')) {
                                                                                                     $robot->setModifiedBy($value);
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                     }
                                                                                 }
                                                                             }
                                                                         }
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }