public function parse($object)
{
if (!is_object($object)) {
throw new ValidationException('ItemLink has to be an object, "' . gettype($object) . '" given.');
}
foreach (get_object_vars($object) as $name => $value) {
$this->set($name, $value);
}
return $this;
}