protected function marshall(QtiComponent $component)
    {
        $element = $this->createElement($component);
        $object = $component->getObject();
        $element->appendChild($this->getMarshallerFactory()->createMarshaller($object)->marshall($object));

        foreach ($component->getPositionObjectInteractions() as $interaction) {
            $element->appendChild($this->getMarshallerFactory()->createMarshaller($interaction)->marshall($interaction));
        }

        return $element;
    }
protected function marshall(QtiComponent $component)
    {
        $element = $this->createElement($component);
        $object = $component->getObject();
        $element->appendChild($this->getMarshallerFactory()->createMarshaller($object)->marshall($object));

        foreach ($component->getPositionObjectInteractions() as $interaction) {
            $element->appendChild($this->getMarshallerFactory()->createMarshaller($interaction)->marshall($interaction));
        }

        return $element;
    }
protected function marshall ( QtiComponent $ component ) { $ element = $ this -> createElement ( $ component ) ; $ object = $ component -> getObject ( ) ; $ element -> appendChild ( $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ object ) -> marshall ( $ object ) ) ; foreach ( $ component -> getPositionObjectInteractions ( ) as $ interaction ) { $ element -> appendChild ( $ this -> getMarshallerFactory ( ) -> createMarshaller ( $ interaction ) -> marshall ( $ interaction ) ) ; } return $ element ; }
Marshall an PositionObjectStage object into a DOMElement object.

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