protected function unmarshallChildrenKnown(DOMElement $element, QtiComponentCollection $children)
    {
        if (($caseSensitive = $this->getDOMElementAttributeAs($element, 'caseSensitive', 'boolean')) !== null) {

            $object = new StringMatch($children, $caseSensitive);

            if (($substring = $this->getDOMElementAttributeAs($element, 'substring', 'boolean')) !== null) {
                $object->setSubstring($substring);
            }

            return $object;
        } else {
            $msg = "The mandatory attribute 'caseSensitive' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown(DOMElement $element, QtiComponentCollection $children)
    {
        if (($caseSensitive = $this->getDOMElementAttributeAs($element, 'caseSensitive', 'boolean')) !== null) {

            $object = new StringMatch($children, $caseSensitive);

            if (($substring = $this->getDOMElementAttributeAs($element, 'substring', 'boolean')) !== null) {
                $object->setSubstring($substring);
            }

            return $object;
        } else {
            $msg = "The mandatory attribute 'caseSensitive' is missing from element '" . $element->localName . "'.";
            throw new UnmarshallingException($msg, $element);
        }
    }
protected function unmarshallChildrenKnown ( DOMElement $ element , QtiComponentCollection $ children ) { if ( ( $ caseSensitive = $ this -> getDOMElementAttributeAs ( $ element , 'caseSensitive' , 'boolean' ) ) !== null ) { $ object = new StringMatch ( $ children , $ caseSensitive ) ; if ( ( $ substring = $ this -> getDOMElementAttributeAs ( $ element , 'substring' , 'boolean' ) ) !== null ) { $ object -> setSubstring ( $ substring ) ; } return $ object ; } else { $ msg = "The mandatory attribute 'caseSensitive' is missing from element '" . $ element -> localName . "'." ; throw new UnmarshallingException ( $ msg , $ element ) ; } }
Unmarshall a QTI stringMatch operator element into an StringMatch object.

@param \DOMElement The stringMatch element to unmarshall.
@param \qtism\data\QtiComponentCollection A collection containing the child Expression objects composing the Operator.
@return \qtism\data\QtiComponent An StringMatch object.
@throws \qtism\data\storage\xml\marshalling\UnmarshallingException
Unmarshall a QTI stringMatch operator element into an StringMatch object .