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 { ExtensibleNode } from '../ExtensibleNode';
/**
 * Constructor.
 * @param {string} schemeName
 * @class
 * @extends ExtensibleNode
 * @author eric.wittmann@gmail.com
 */
var SecurityScheme = /** @class */ (function (_super) {
    __extends(SecurityScheme, _super);
    function SecurityScheme(schemeName) {
        var _this = _super.call(this) || this;
        if (_this._schemeName === undefined)
            _this._schemeName = null;
        if (_this.type === undefined)
            _this.type = null;
        if (_this.description === undefined)
            _this.description = null;
        if (_this.name === undefined)
            _this.name = null;
        if (_this.in === undefined)
            _this.in = null;
        _this._schemeName = schemeName;
        return _this;
    }
    /**
     * Gets the scheme name.
     * @return {string}
     */
    SecurityScheme.prototype.getSchemeName = function () {
        return this._schemeName;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#getName()
     * @return {string}
     */
    SecurityScheme.prototype.getName = function () {
        return this.getSchemeName();
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#rename(java.lang.String)
     * @param {string} newName
     */
    SecurityScheme.prototype.rename = function (newName) {
        this._schemeName = newName;
    };
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    SecurityScheme.prototype.accept = function (visitor) {
        visitor.visitSecurityScheme(this);
    };
    return SecurityScheme;
}(ExtensibleNode));
export { SecurityScheme };
SecurityScheme["__class"] = "io.apicurio.datamodels.core.models.common.SecurityScheme";
SecurityScheme["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.INamed"];
//# sourceMappingURL=SecurityScheme.js.map