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

        $marshaller = $this->getMarshallerFactory()->createMarshaller($component->getExpression());
        $element->appendChild($marshaller->marshall($component->getExpression()));

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

        $marshaller = $this->getMarshallerFactory()->createMarshaller($component->getExpression());
        $element->appendChild($marshaller->marshall($component->getExpression()));

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = static :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; $ marshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ component -> getExpression ( ) ) ; $ element -> appendChild ( $ marshaller -> marshall ( $ component -> getExpression ( ) ) ) ; return $ element ; }
Marshall a PreCondition object into a DOMElement object.

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