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 { OasResponse } from '../../models/OasResponse';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends OasResponse
 * @author eric.wittmann@gmail.com
 */
var Oas20Response = /** @class */ (function (_super) {
    __extends(Oas20Response, _super);
    function Oas20Response(name) {
        var _this = _super.call(this, name) || this;
        if (_this.headers === undefined)
            _this.headers = null;
        if (_this.schema === undefined)
            _this.schema = null;
        if (_this.examples === undefined)
            _this.examples = null;
        return _this;
    }
    /**
     * Creates an OAS 2.0 schema object.
     * @return {Oas20Schema}
     */
    Oas20Response.prototype.createSchema = function () {
        var rval = new Oas20Schema();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * Creates an OAS 2.0 headers object.
     * @return {Oas20Headers}
     */
    Oas20Response.prototype.createHeaders = function () {
        var rval = new Oas20Headers();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * Creates an OAS 2.0 schema object.
     * @return {Oas20Example}
     */
    Oas20Response.prototype.createExample = function () {
        var rval = new Oas20Example();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    return Oas20Response;
}(OasResponse));
export { Oas20Response };
Oas20Response["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20Response";
Oas20Response["__interfaces"] = ["io.apicurio.datamodels.core.models.common.IExampleParent", "io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.INamed"];
import { Oas20Example } from './Oas20Example';
import { Oas20Schema } from './Oas20Schema';
import { Oas20Headers } from './Oas20Headers';
//# sourceMappingURL=Oas20Response.js.map