[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.default = void 0;
|
---|
| 5 | var _apidomCore = require("@swagger-api/apidom-core");
|
---|
| 6 | class Header extends _apidomCore.ObjectElement {
|
---|
| 7 | constructor(content, meta, attributes) {
|
---|
| 8 | super(content, meta, attributes);
|
---|
| 9 | this.element = 'header';
|
---|
| 10 | }
|
---|
| 11 | get required() {
|
---|
| 12 | if (this.hasKey('required')) {
|
---|
| 13 | return this.get('required');
|
---|
| 14 | }
|
---|
| 15 | return new _apidomCore.BooleanElement(false);
|
---|
| 16 | }
|
---|
| 17 | set required(required) {
|
---|
| 18 | this.set('required', required);
|
---|
| 19 | }
|
---|
| 20 | get deprecated() {
|
---|
| 21 | if (this.hasKey('deprecated')) {
|
---|
| 22 | return this.get('deprecated');
|
---|
| 23 | }
|
---|
| 24 | return new _apidomCore.BooleanElement(false);
|
---|
| 25 | }
|
---|
| 26 | set deprecated(deprecated) {
|
---|
| 27 | this.set('deprecated', deprecated);
|
---|
| 28 | }
|
---|
| 29 | get allowEmptyValue() {
|
---|
| 30 | return this.get('allowEmptyValue');
|
---|
| 31 | }
|
---|
| 32 | set allowEmptyValue(allowEmptyValue) {
|
---|
| 33 | this.set('allowEmptyValue', allowEmptyValue);
|
---|
| 34 | }
|
---|
| 35 | get style() {
|
---|
| 36 | return this.get('style');
|
---|
| 37 | }
|
---|
| 38 | set style(style) {
|
---|
| 39 | this.set('style', style);
|
---|
| 40 | }
|
---|
| 41 | get explode() {
|
---|
| 42 | return this.get('explode');
|
---|
| 43 | }
|
---|
| 44 | set explode(explode) {
|
---|
| 45 | this.set('explode', explode);
|
---|
| 46 | }
|
---|
| 47 | get allowReserved() {
|
---|
| 48 | return this.get('allowReserved');
|
---|
| 49 | }
|
---|
| 50 | set allowReserved(allowReserved) {
|
---|
| 51 | this.set('allowReserved', allowReserved);
|
---|
| 52 | }
|
---|
| 53 | get schema() {
|
---|
| 54 | return this.get('schema');
|
---|
| 55 | }
|
---|
| 56 | set schema(schema) {
|
---|
| 57 | this.set('schema', schema);
|
---|
| 58 | }
|
---|
| 59 | get example() {
|
---|
| 60 | return this.get('example');
|
---|
| 61 | }
|
---|
| 62 | set example(example) {
|
---|
| 63 | this.set('example', example);
|
---|
| 64 | }
|
---|
| 65 | get examples() {
|
---|
| 66 | return this.get('examples');
|
---|
| 67 | }
|
---|
| 68 | set examples(examples) {
|
---|
| 69 | this.set('examples', examples);
|
---|
| 70 | }
|
---|
| 71 | get contentProp() {
|
---|
| 72 | return this.get('content');
|
---|
| 73 | }
|
---|
| 74 | set contentProp(content) {
|
---|
| 75 | this.set('content', content);
|
---|
| 76 | }
|
---|
| 77 | }
|
---|
| 78 | Object.defineProperty(Header.prototype, 'description', {
|
---|
| 79 | get() {
|
---|
| 80 | return this.get('description');
|
---|
| 81 | },
|
---|
| 82 | set(description) {
|
---|
| 83 | this.set('description', description);
|
---|
| 84 | },
|
---|
| 85 | enumerable: true
|
---|
| 86 | });
|
---|
| 87 | var _default = exports.default = Header; |
---|