UNPKG

strong-soap

Version:
34 lines (32 loc) 1.05 kB
// Copyright IBM Corp. 2016,2017. All Rights Reserved. // Node module: strong-soap // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; var WSDLElement = require('./wsdlElement'); class Part extends WSDLElement { constructor(nsName, attrs, options) { super(nsName, attrs, options); } postProcess(definitions) { if (this.$element) { this.element = this.resolveSchemaObject(definitions.schemas, 'element', this.$element); } else if (this.$type) { this.type = this.resolveSchemaObject(definitions.schemas, 'type', this.$type); } } describe(definitions) { if (this.descriptor) return this.descriptor; if (this.element) { this.descriptor = this.element.describe(definitions); } else if (this.type) { this.descriptor = this.type.describe(definitions); } else { this.descriptor = null; } return this.descriptor; } } Part.elementName = 'part'; module.exports = Part; //# sourceMappingURL=part.js.map