protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'mapKey', $component->getMapKey());
        $this->setDOMElementAttribute($element, 'mappedValue', $component->getMappedValue());
        
        if (Version::compare($this->getVersion(), '2.0.0', '>') === true) {
            $this->setDOMElementAttribute($element, 'caseSensitive', $component->isCaseSensitive());
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'mapKey', $component->getMapKey());
        $this->setDOMElementAttribute($element, 'mappedValue', $component->getMappedValue());
        
        if (Version::compare($this->getVersion(), '2.0.0', '>') === true) {
            $this->setDOMElementAttribute($element, 'caseSensitive', $component->isCaseSensitive());
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'mapKey' , $ component -> getMapKey ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'mappedValue' , $ component -> getMappedValue ( ) ) ; if ( Version :: compare ( $ this -> getVersion ( ) , '2.0.0' , '>' ) === true ) { $ this -> setDOMElementAttribute ( $ element , 'caseSensitive' , $ component -> isCaseSensitive ( ) ) ; } return $ element ; }
Marshall a MapEntry object into a DOMElement object.

@param \qtism\data\QtiComponent $component A MapEntry object.
@return \DOMElement The according DOMElement object.
Marshall a MapEntry object into a DOMElement object .