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 __());
    };
})();
import { OasTag } from '../../models/OasTag';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends OasTag
 * @author eric.wittmann@gmail.com
 */
var Oas20Tag = /** @class */ (function (_super) {
    __extends(Oas20Tag, _super);
    function Oas20Tag(name) {
        var _this = this;
        if (((typeof name === 'string') || name === null)) {
            var __args = arguments;
            _this = _super.call(this, name) || this;
        }
        else if (name === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.common.Tag#createExternalDocumentation()
     * @return {ExternalDocumentation}
     */
    Oas20Tag.prototype.createExternalDocumentation = function () {
        var ed = new Oas20ExternalDocumentation();
        ed._ownerDocument = this.ownerDocument();
        ed._parent = this;
        return ed;
    };
    return Oas20Tag;
}(OasTag));
export { Oas20Tag };
Oas20Tag["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20Tag";
Oas20Tag["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.IExternalDocumentationParent", "io.apicurio.datamodels.core.models.common.INamed"];
import { Oas20ExternalDocumentation } from './Oas20ExternalDocumentation';
//# sourceMappingURL=Oas20Tag.js.map