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 { OasPathItem } from '../../models/OasPathItem';
/**
 * Constructor.
 * @param {string} path
 * @class
 * @extends OasPathItem
 * @author eric.wittmann@gmail.com
 */
var Oas20PathItem = /** @class */ (function (_super) {
    __extends(Oas20PathItem, _super);
    function Oas20PathItem(path) {
        return _super.call(this, path) || this;
    }
    /**
     * @see io.apicurio.datamodels.openapi.models.OasPathItem#createOperation(java.lang.String)
     * @param {string} method
     * @return {OasOperation}
     */
    Oas20PathItem.prototype.createOperation = function (method) {
        var rval = new Oas20Operation(method);
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * @see io.apicurio.datamodels.openapi.models.OasPathItem#createParameter()
     * @return {OasParameter}
     */
    Oas20PathItem.prototype.createParameter = function () {
        var rval = new Oas20Parameter();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    return Oas20PathItem;
}(OasPathItem));
export { Oas20PathItem };
Oas20PathItem["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20PathItem";
Oas20PathItem["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.openapi.models.IOasParameterParent"];
import { Oas20Parameter } from './Oas20Parameter';
import { Oas20Operation } from './Oas20Operation';
//# sourceMappingURL=Oas20PathItem.js.map