| 469 | } |
| 470 | |
| 471 | export class ChoiceElement extends Element { |
| 472 | public readonly allowedChildren = buildAllowedChildren(['any', 'choice', 'element', 'sequence']); |
| 473 | public description(definitions: DefinitionsElement, xmlns: IXmlNs) { |
| 474 | const choice = {}; |
| 475 | for (const child of this.children) { |
| 476 | const description = child.description(definitions, xmlns); |
| 477 | for (const key in description) { |
| 478 | choice[key] = description[key]; |
| 479 | } |
| 480 | } |
| 481 | return choice; |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | export class EnumerationElement extends Element { |
| 486 | // no children |
nothing calls this directly
no test coverage detected