Sets a field from the object by Position as specified in the xml schema.
Zero-based.

@param      int $pos position in xml schema
@param      mixed $value field value
@return void
167122
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setDealerId($value);
                break;
            case 2:
                $this->setIsDefault($value);
                break;
            case 3:
                $this->setCreatedAt($value);
                break;
            case 4:
                $this->setUpdatedAt($value);
                break;
            case 5:
                $this->setVersion($value);
                break;
            case 6:
                $this->setVersionCreatedAt($value);
                break;
            case 7:
                $this->setVersionCreatedBy($value);
                break;
            case 8:
                $this->setDealerIdVersion($value);
                break;
            case 9:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContactInfoIds($value);
                break;
            case 10:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContactInfoVersions($value);
                break;
        } // switch()
    }
844786
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setMapuid($value);
                break;
            case 2:
                $this->setName($value);
                break;
            case 3:
                $this->setFilename($value);
                break;
            case 4:
                $this->setAuthor($value);
                break;
            case 5:
                $this->setEnvironment($value);
                break;
            case 6:
                $this->setMood($value);
                break;
            case 7:
                $this->setBronzetime($value);
                break;
            case 8:
                $this->setSilvertime($value);
                break;
            case 9:
                $this->setGoldtime($value);
                break;
            case 10:
                $this->setAuthortime($value);
                break;
            case 11:
                $this->setCopperprice($value);
                break;
            case 12:
                $this->setLaprace($value);
                break;
            case 13:
                $this->setNblaps($value);
                break;
            case 14:
                $this->setNpcheckpoints($value);
                break;
            case 15:
                $this->setMaptype($value);
                break;
            case 16:
                $this->setMapstyle($value);
                break;
            case 17:
                $this->setCreatedAt($value);
                break;
            case 18:
                $this->setUpdatedAt($value);
                break;
        } // switch()

        return $this;
    }
1279028
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setRoleId($value);
                break;
            case 1:
                $this->setPermissionId($value);
                break;
        } // switch()

        return $this;
    }
306306
public function reset($pos = null){
		
		if(\is_int($pos)){
			$this->offsetSet($pos, false);
		}
		else{
			$this->_List = ArrayList::repeat(false, $this->count());
		}
		
	}
462352
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setCategoryId($value);
                break;
            case 1:
                $this->setPageId($value);
                break;
        } // switch()

        return $this;
    }
460671
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setCode($value);
                break;
            case 2:
                $this->setEn($value);
                break;
            case 3:
                $this->setDe($value);
                break;
        } // switch()
    }
83362
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setSportId($value);
                break;
            case 2:
                $this->setName($value);
                break;
            case 3:
                $this->setAlternativeName($value);
                break;
            case 4:
                $this->setSlug($value);
                break;
            case 5:
                $this->setDescription($value);
                break;
            case 6:
                $this->setHistory($value);
                break;
            case 7:
                $this->setIsTranslation($value);
                break;
            case 8:
                $this->setIsRotation($value);
                break;
            case 9:
                $this->setIsAcyclic($value);
                break;
            case 10:
                $this->setIsCyclic($value);
                break;
            case 11:
                $this->setLongitudinalFlags($value);
                break;
            case 12:
                $this->setLatitudinalFlags($value);
                break;
            case 13:
                $this->setTransversalFlags($value);
                break;
            case 14:
                $this->setMovementDescription($value);
                break;
            case 15:
                $this->setSequencePictureUrl($value);
                break;
            case 16:
                $this->setVariationOfId($value);
                break;
            case 17:
                $this->setStartPositionId($value);
                break;
            case 18:
                $this->setEndPositionId($value);
                break;
            case 19:
                $this->setIsComposite($value);
                break;
            case 20:
                $this->setIsMultiple($value);
                break;
            case 21:
                $this->setMultipleOfId($value);
                break;
            case 22:
                $this->setMultiplier($value);
                break;
            case 23:
                $this->setGeneration($value);
                break;
            case 24:
                $this->setImportance($value);
                break;
            case 25:
                $this->setPictureId($value);
                break;
            case 26:
                $this->setVideoId($value);
                break;
            case 27:
                $this->setTutorialId($value);
                break;
            case 28:
                $this->setKstrukturId($value);
                break;
            case 29:
                $this->setFunctionPhaseId($value);
                break;
            case 30:
                $this->setObjectId($value);
                break;
            case 31:
                $this->setVersion($value);
                break;
            case 32:
                $this->setVersionCreatedAt($value);
                break;
            case 33:
                $this->setVersionComment($value);
                break;
        } // switch()

        return $this;
    }
223204
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setName($value);
                break;
            case 2:
                $this->setRole($value);
                break;
        } // switch()
    }
674208
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setSkillId($value);
                break;
            case 1:
                $this->setReferenceId($value);
                break;
        } // switch()

        return $this;
    }
399094
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setCode($value);
                break;
            case 2:
                $this->setDriverCode($value);
                break;
            case 3:
                $this->setTitle($value);
                break;
            case 4:
                $this->setSerializedConfiguration($value);
                break;
        } // switch()
    }
1247699
public function setPositionAttribute($value)
    {
        if ($this->position === $value) {
            return;
        }
        $this->old_position = $this->position;
        $this->attributes[$this->getPositionColumn()] = intval($value);
    }
85388
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setType($value);
                break;
            case 2:
                $this->setSkillId($value);
                break;
            case 3:
                $this->setTitle($value);
                break;
            case 4:
                $this->setDescendantClass($value);
                break;
        } // switch()

        return $this;
    }
1331156
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setCustomerId($value);
                break;
            case 1:
                $this->setCustomerGroupId($value);
                break;
        } // switch()
    }
626279
public function setPosition($posX, $posY, $posZ = null)
    {
        $this->setX($posX)
             ->setY($posY);
        if ($posZ !== null) {
            $this->setZ($posZ);
        }
        return $this;
    }
609583
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setPartId($value);
                break;
            case 1:
                $this->setCompositeId($value);
                break;
        } // switch()

        return $this;
    }
1104222
public function push($value)
    {
        $this->offsetSet($this->count(), $value);
        $this->seek($this->count() - 1);
    }
767020
public static function set($position, $value, $baseOn = null) {
        $t = pow(2, $position - 1);
        if($value) {
            $t = $baseOn | $t;
        } elseif ($baseOn !== null) {
            $t = $baseOn & ~$t;
        } else {
            $t = ~$t;
        }
        return $t & 0xFFFF;
    }