var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { AaiTag } from '../../models/AaiTag';
import { Node } from '../../../core/models/Node';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends AaiTag
 * @author eric.wittmann@gmail.com
 */
var Aai20Tag = /** @class */ (function (_super) {
    __extends(Aai20Tag, _super);
    function Aai20Tag(name) {
        var _this = this;
        if (((typeof name === 'string') || name === null)) {
            var __args = arguments;
            _this = _super.call(this, name) || this;
        }
        else if (((name != null && name instanceof Node) || name === null)) {
            var __args = arguments;
            var parent_1 = __args[0];
            _this = _super.call(this, parent_1) || this;
        }
        else if (name === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     * @see Tag#createExternalDocumentation()
     * @return {Aai20ExternalDocumentation}
     */
    Aai20Tag.prototype.createExternalDocumentation = function () {
        return new Aai20ExternalDocumentation(this);
    };
    return Aai20Tag;
}(AaiTag));
export { Aai20Tag };
Aai20Tag["__class"] = "io.apicurio.datamodels.asyncapi.v2.models.Aai20Tag";
Aai20Tag["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.IExternalDocumentationParent", "io.apicurio.datamodels.core.models.common.INamed"];
import { Aai20ExternalDocumentation } from './Aai20ExternalDocumentation';
//# sourceMappingURL=Aai20Tag.js.map