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 '../ExtensibleNode';
/**
 * Models a schema.
 * @author eric.wittmann@gmail.com
 * @class
 * @extends ExtensibleNode
 */
var Schema = /** @class */ (function (_super) {
    __extends(Schema, _super);
    function Schema() {
        var _this = _super.call(this) || this;
        if (_this.$ref === undefined)
            _this.$ref = null;
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Schema.prototype.accept = function (visitor) {
        visitor.visitSchema(this);
    };
    /**
     *
     * @return {string}
     */
    Schema.prototype.getReference = function () {
        return this.$ref;
    };
    /**
     *
     * @param {string} reference
     */
    Schema.prototype.setReference = function (reference) {
        this.$ref = reference;
    };
    return Schema;
}(ExtensibleNode));
export { Schema };
Schema["__class"] = "io.apicurio.datamodels.core.models.common.Schema";
Schema["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode"];
//# sourceMappingURL=Schema.js.map