source: node_modules/@swagger-api/apidom-ns-openapi-3-0/es/elements/Link.mjs@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import { ObjectElement, isStringElement } from '@swagger-api/apidom-core';
2class Link extends ObjectElement {
3 constructor(content, meta, attributes) {
4 super(content, meta, attributes);
5 this.element = 'link';
6 }
7 get operationRef() {
8 return this.get('operationRef');
9 }
10 set operationRef(operationRef) {
11 this.set('operationRef', operationRef);
12 }
13 get operationId() {
14 return this.get('operationId');
15 }
16 set operationId(operationId) {
17 this.set('operationId', operationId);
18 }
19 get operation() {
20 if (isStringElement(this.operationRef)) {
21 var _this$operationRef;
22 return (_this$operationRef = this.operationRef) === null || _this$operationRef === void 0 ? void 0 : _this$operationRef.meta.get('operation');
23 }
24 if (isStringElement(this.operationId)) {
25 var _this$operationId;
26 return (_this$operationId = this.operationId) === null || _this$operationId === void 0 ? void 0 : _this$operationId.meta.get('operation');
27 }
28 return undefined;
29 }
30 set operation(operation) {
31 this.set('operation', operation);
32 }
33 get parameters() {
34 return this.get('parameters');
35 }
36 set parameters(parameters) {
37 this.set('parameters', parameters);
38 }
39 get requestBody() {
40 return this.get('requestBody');
41 }
42 set requestBody(requestBody) {
43 this.set('requestBody', requestBody);
44 }
45 get description() {
46 return this.get('description');
47 }
48 set description(description) {
49 this.set('description', description);
50 }
51 get server() {
52 return this.get('server');
53 }
54 set server(server) {
55 this.set('server', server);
56 }
57}
58export default Link;
Note: See TracBrowser for help on using the repository browser.