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