strong-soap
Version:
A minimal node SOAP client
30 lines (24 loc) • 755 B
JavaScript
'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;