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} name
 * @class
 * @extends ExtensibleNode
 * @author eric.wittmann@gmail.com
 */
var ServerVariable = /** @class */ (function (_super) {
    __extends(ServerVariable, _super);
    function ServerVariable(name) {
        var _this = _super.call(this) || this;
        if (_this._name === undefined)
            _this._name = null;
        if (_this.enum_ === undefined)
            _this.enum_ = null;
        if (_this.default_ === undefined)
            _this.default_ = null;
        if (_this.description === undefined)
            _this.description = null;
        _this._name = name;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#getName()
     * @return {string}
     */
    ServerVariable.prototype.getName = function () {
        return this._name;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#rename(java.lang.String)
     * @param {string} newName
     */
    ServerVariable.prototype.rename = function (newName) {
        this._name = newName;
    };
    return ServerVariable;
}(ExtensibleNode));
export { ServerVariable };
ServerVariable["__class"] = "io.apicurio.datamodels.core.models.common.ServerVariable";
ServerVariable["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.INamed"];
//# sourceMappingURL=ServerVariable.js.map