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 { Node } from '../../../core/models/Node';
/**
 * Constructor.
 * @param {string} value
 * @class
 * @extends Node
 * @author eric.wittmann@gmail.com
 */
var Oas30LinkRequestBodyExpression = /** @class */ (function (_super) {
    __extends(Oas30LinkRequestBodyExpression, _super);
    function Oas30LinkRequestBodyExpression(value) {
        var _this = _super.call(this) || this;
        if (_this._value === undefined)
            _this._value = null;
        _this._value = value;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas30LinkRequestBodyExpression.prototype.accept = function (visitor) {
        var viz = visitor;
        viz.visitLinkRequestBodyExpression(this);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.models.IOas30Expression#getValue()
     * @return {string}
     */
    Oas30LinkRequestBodyExpression.prototype.getValue = function () {
        return this._value;
    };
    /**
     * Returns true if the expression is a dynamic link parameter expression that must be evaluated.
     * @return {boolean}
     */
    Oas30LinkRequestBodyExpression.prototype.isExpression = function () {
        return this.getValue() != null && this.getValue().indexOf("$") === 0;
    };
    /**
     * Returns true if the expression is just a constant value.
     * @return {boolean}
     */
    Oas30LinkRequestBodyExpression.prototype.isConstant = function () {
        return !this.isExpression();
    };
    return Oas30LinkRequestBodyExpression;
}(Node));
export { Oas30LinkRequestBodyExpression };
Oas30LinkRequestBodyExpression["__class"] = "io.apicurio.datamodels.openapi.v3.models.Oas30LinkRequestBodyExpression";
Oas30LinkRequestBodyExpression["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.openapi.v3.models.IOas30Expression"];
//# sourceMappingURL=Oas30LinkRequestBodyExpression.js.map