UNPKG

strong-soap

Version:
32 lines (30 loc) 954 B
// 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 XSDElement = require('./xsdElement'); class Group extends XSDElement { constructor(nsName, attrs, options) { super(nsName, attrs, options); } postProcess(defintions) { var schemas = defintions.schemas; if (this.$ref) { this.ref = this.resolveSchemaObject(schemas, 'group', this.$ref); } } describe(definitions) { if (this.descriptor) return this.descriptor; if (this.ref) { this.descriptor = this.ref.describe(definitions); } else { this.descriptor = this.describeChildren(definitions); } return this.descriptor; } } Group.elementName = 'group'; Group.allowedChildren = ['annotation', 'all', 'choice', 'sequence']; module.exports = Group; //# sourceMappingURL=group.js.map