MCPcopy
hub / github.com/vpulim/node-soap / ChoiceElement

Class ChoiceElement

src/wsdl/elements.ts:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471export 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
485export class EnumerationElement extends Element {
486 // no children

Callers

nothing calls this directly

Calls 1

buildAllowedChildrenFunction · 0.85

Tested by

no test coverage detected