/** * Sets a known attribute of Conclusion from an XML reader. * * @param \XMLReader $xml The reader. * * @return bool Whether an attribute was set. */ protected function setKnownAttribute(\XMLReader $xml) { if (parent::setKnownAttribute($xml)) { return true; } else { if ($xml->localName == 'confidence' && empty($xml->namespaceURI)) { $this->confidence = $xml->value; return true; } else { if ($xml->localName == 'lang' && $xml->namespaceURI == 'http://www.w3.org/XML/1998/namespace') { $this->lang = $xml->value; return true; } } } return false; }
/** * Sets a known attribute of Field from an XML reader. * * @param \XMLReader $xml The reader. * * @return bool Whether an attribute was set. */ protected function setKnownAttribute(\XMLReader $xml) { if (parent::setKnownAttribute($xml)) { return true; } else { if ($xml->localName == 'type' && empty($xml->namespaceURI)) { $this->type = $xml->value; return true; } } return false; }
/** * Sets a known attribute of SourceDescription from an XML reader. * * @param \XMLReader $xml The reader. * @return bool Whether an attribute was set. */ protected function setKnownAttribute(\XMLReader $xml) { if (parent::setKnownAttribute($xml)) { return true; } else { if ($xml->localName == 'about' && empty($xml->namespaceURI)) { $this->about = $xml->value; return true; } else { if ($xml->localName == 'mediaType' && empty($xml->namespaceURI)) { $this->mediaType = $xml->value; return true; } else { if ($xml->localName == 'resourceType' && empty($xml->namespaceURI)) { $this->resourceType = $xml->value; return true; } } } } return false; }
/** * Sets a known attribute of FieldDescriptor from an XML reader. * * @param \XMLReader $xml The reader. * * @return bool Whether an attribute was set. */ protected function setKnownAttribute(\XMLReader $xml) { if (parent::setKnownAttribute($xml)) { return true; } return false; }