UNPKG

strong-soap

Version:
32 lines (25 loc) 760 B
'use strict'; var XSDElement = require('./xsdElement'); class AttributeGroup extends XSDElement { constructor(nsName, attrs, options) { super(nsName, attrs, options); } resolve(schemas) { if (this.$ref) { this.ref = this.resolveSchemaObject(schemas, 'attributeGroup', 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; } } AttributeGroup.elementName = 'attributeGroup'; AttributeGroup.allowedChildren = ['annotation', 'attribute', 'attributeGroup', 'anyAttribute']; module.exports = AttributeGroup;