public function unmarshall(DOMElement $element)
    {
        if (($identifier = $this->getDOMElementAttributeAs($element, 'identifier')) !== null) {

            if (($href = $this->getDOMElementAttributeAs($element, 'href')) !== null) {
                return new RubricBlockRef($identifier, $href);
            } else {
                $msg = "The mandatory 'href' attribute is missing from element 'rubricBlockRef'.";
                throw new UnmarshallingException($msg, $element);
            }
        } else {
            $msg = "The mandatory 'identifier' attribute is missing from element 'rubricBlockRef'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
public function unmarshall(DOMElement $element)
    {
        if (($identifier = $this->getDOMElementAttributeAs($element, 'identifier')) !== null) {

            if (($href = $this->getDOMElementAttributeAs($element, 'href')) !== null) {
                return new RubricBlockRef($identifier, $href);
            } else {
                $msg = "The mandatory 'href' attribute is missing from element 'rubricBlockRef'.";
                throw new UnmarshallingException($msg, $element);
            }
        } else {
            $msg = "The mandatory 'identifier' attribute is missing from element 'rubricBlockRef'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
public function unmarshall ( DOMElement $ element ) { if ( ( $ identifier = $ this -> getDOMElementAttributeAs ( $ element , 'identifier' ) ) !== null ) { if ( ( $ href = $ this -> getDOMElementAttributeAs ( $ element , 'href' ) ) !== null ) { return new RubricBlockRef ( $ identifier , $ href ) ; } else { $ msg = "The mandatory 'href' attribute is missing from element 'rubricBlockRef'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } } else { $ msg = "The mandatory 'identifier' attribute is missing from element 'rubricBlockRef'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a DOMElement to its RubricBlockRef data model representation.

@param \DOMElement $element
@return \qtism\data\QtiComponent A RubricBlockRef object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException If the 'identifier' or 'href' attribute is missing from the XML definition.
Unmarshall a DOMElement to its RubricBlockRef data model representation .