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

        $this->setDOMElementAttribute($element, 'templateIdentifier', $component->getTemplateIdentifier());

        $expr = $component->getExpression();
        $exprMarshaller = $this->getMarshallerFactory()->createMarshaller($expr);
        $exprElt = $exprMarshaller->marshall($expr);

        $element->appendChild($exprElt);

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

        $this->setDOMElementAttribute($element, 'templateIdentifier', $component->getTemplateIdentifier());

        $expr = $component->getExpression();
        $exprMarshaller = $this->getMarshallerFactory()->createMarshaller($expr);
        $exprElt = $exprMarshaller->marshall($expr);

        $element->appendChild($exprElt);

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ this -> setDOMElementAttribute ( $ element , 'templateIdentifier' , $ component -> getTemplateIdentifier ( ) ) ; $ expr = $ component -> getExpression ( ) ; $ exprMarshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ expr ) ; $ exprElt = $ exprMarshaller -> marshall ( $ expr ) ; $ element -> appendChild ( $ exprElt ) ; return $ element ; }
Marshall a TemplateDefault object into a DOMElement object.

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