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 '../../../core/models/ExtensibleNode';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends ExtensibleNode
 * @author eric.wittmann@gmail.com
 */
var Oas30Example = /** @class */ (function (_super) {
    __extends(Oas30Example, _super);
    function Oas30Example(name) {
        var _this = _super.call(this) || this;
        if (_this._name === undefined)
            _this._name = null;
        if (_this.$ref === undefined)
            _this.$ref = null;
        if (_this.summary === undefined)
            _this.summary = null;
        if (_this.description === undefined)
            _this.description = null;
        if (_this.value === undefined)
            _this.value = null;
        if (_this.externalValue === undefined)
            _this.externalValue = null;
        _this._name = name;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#getName()
     * @return {string}
     */
    Oas30Example.prototype.getName = function () {
        return this._name;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#rename(java.lang.String)
     * @param {string} newName
     */
    Oas30Example.prototype.rename = function (newName) {
        this._name = newName;
    };
    /**
     *
     * @return {string}
     */
    Oas30Example.prototype.getReference = function () {
        return this.$ref;
    };
    /**
     *
     * @param {string} reference
     */
    Oas30Example.prototype.setReference = function (reference) {
        this.$ref = reference;
    };
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas30Example.prototype.accept = function (visitor) {
        var viz = visitor;
        viz.visitExample(this);
    };
    return Oas30Example;
}(ExtensibleNode));
export { Oas30Example };
Oas30Example["__class"] = "io.apicurio.datamodels.openapi.v3.models.Oas30Example";
Oas30Example["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.IExample", "io.apicurio.datamodels.core.models.common.INamed"];
//# sourceMappingURL=Oas30Example.js.map