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 { Oas20Schema } from './Oas20Schema';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends Oas20Schema
 * @author eric.wittmann@gmail.com
 */
var Oas20SchemaDefinition = /** @class */ (function (_super) {
    __extends(Oas20SchemaDefinition, _super);
    function Oas20SchemaDefinition(name) {
        var _this = _super.call(this) || this;
        if (_this._name === undefined)
            _this._name = null;
        _this._name = name;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#getName()
     * @return {string}
     */
    Oas20SchemaDefinition.prototype.getName = function () {
        return this._name;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.INamed#rename(java.lang.String)
     * @param {string} newName
     */
    Oas20SchemaDefinition.prototype.rename = function (newName) {
        this._name = newName;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.Schema#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas20SchemaDefinition.prototype.accept = function (visitor) {
        visitor.visitSchemaDefinition(this);
    };
    return Oas20SchemaDefinition;
}(Oas20Schema));
export { Oas20SchemaDefinition };
Oas20SchemaDefinition["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20SchemaDefinition";
Oas20SchemaDefinition["__interfaces"] = ["io.apicurio.datamodels.core.models.common.IDefinition", "io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.INamed", "io.apicurio.datamodels.core.models.common.IExternalDocumentationParent"];
//# sourceMappingURL=Oas20SchemaDefinition.js.map