|
@@ 349-356 (lines=8) @@
|
| 346 |
|
* |
| 347 |
|
* @param ResourceProperty $complexProperty complex property |
| 348 |
|
*/ |
| 349 |
|
private function _writeComplexProperty(ResourceProperty $complexProperty) |
| 350 |
|
{ |
| 351 |
|
$this->_xmlWriter->startElement(ODataConstants::PROPERTY); |
| 352 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::NAME, $complexProperty->getName()); |
| 353 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::TYPE1, $complexProperty->getResourceType()->getFullName()); |
| 354 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::NULLABLE, 'false'); |
| 355 |
|
$this->_xmlWriter->endElement(); |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
/** |
| 359 |
|
* Write a navigation property. |
|
@@ 443-450 (lines=8) @@
|
| 440 |
|
* @param ResourceAssociationTypeEnd $resourceAssociationTypeEnd Resource |
| 441 |
|
* association type end |
| 442 |
|
*/ |
| 443 |
|
private function _writeAssociationTypeEnd(ResourceAssociationTypeEnd $resourceAssociationTypeEnd) |
| 444 |
|
{ |
| 445 |
|
$this->_xmlWriter->startElement(ODataConstants::END); |
| 446 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::ROLE, $resourceAssociationTypeEnd->getName()); |
| 447 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::TYPE1, $resourceAssociationTypeEnd->getResourceType()->getFullName()); |
| 448 |
|
$this->_xmlWriter->writeAttribute(ODataConstants::MULTIPLICITY, $resourceAssociationTypeEnd->getMultiplicity()); |
| 449 |
|
$this->_xmlWriter->endElement(); |
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
/** |
| 453 |
|
* Write entity container. |