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';
/**
 * Models an OpenAPI 2.0 items.
 * @author eric.wittmann@gmail.com
 * @class
 * @extends ExtensibleNode
 */
var Oas20Items = /** @class */ (function (_super) {
    __extends(Oas20Items, _super);
    function Oas20Items() {
        var _this = _super.call(this) || this;
        if (_this.type === undefined)
            _this.type = null;
        if (_this.format === undefined)
            _this.format = null;
        if (_this.items === undefined)
            _this.items = null;
        if (_this.collectionFormat === undefined)
            _this.collectionFormat = null;
        if (_this.default_ === undefined)
            _this.default_ = null;
        if (_this.maximum === undefined)
            _this.maximum = null;
        if (_this.exclusiveMaximum === undefined)
            _this.exclusiveMaximum = null;
        if (_this.minimum === undefined)
            _this.minimum = null;
        if (_this.exclusiveMinimum === undefined)
            _this.exclusiveMinimum = null;
        if (_this.maxLength === undefined)
            _this.maxLength = null;
        if (_this.minLength === undefined)
            _this.minLength = null;
        if (_this.pattern === undefined)
            _this.pattern = null;
        if (_this.maxItems === undefined)
            _this.maxItems = null;
        if (_this.minItems === undefined)
            _this.minItems = null;
        if (_this.uniqueItems === undefined)
            _this.uniqueItems = null;
        if (_this.enum_ === undefined)
            _this.enum_ = null;
        if (_this.multipleOf === undefined)
            _this.multipleOf = null;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas20Items.prototype.accept = function (visitor) {
        var viz = visitor;
        viz.visitItems(this);
    };
    /**
     * Creates a child items model.
     * @return {Oas20Items}
     */
    Oas20Items.prototype.createItems = function () {
        var rval = new Oas20Items();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    return Oas20Items;
}(ExtensibleNode));
export { Oas20Items };
Oas20Items["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20Items";
Oas20Items["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable"];
//# sourceMappingURL=Oas20Items.js.map