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

        foreach ($component->getOutcomeRules() as $outcomeRule) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($outcomeRule);
            $element->appendChild($marshaller->marshall($outcomeRule));
        }

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

        foreach ($component->getOutcomeRules() as $outcomeRule) {
            $marshaller = $this->getMarshallerFactory()->createMarshaller($outcomeRule);
            $element->appendChild($marshaller->marshall($outcomeRule));
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = self :: getDOMCradle ( ) -> createElement ( $ component -> getQtiClassName ( ) ) ; foreach ( $ component -> getOutcomeRules ( ) as $ outcomeRule ) { $ marshaller = $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ outcomeRule ) ; $ element -> appendChild ( $ marshaller -> marshall ( $ outcomeRule ) ) ; } return $ element ; }
Marshall an OutcomeProcessing object into a DOMElement object.

@param \qtism\data\QtiComponent $component An OutcomeProcessing object.
@return \DOMElement The according DOMElement object.
@throws \qtism\data\storage\xml\marshalling\MarshallingException
Marshall an OutcomeProcessing object into a DOMElement object .