main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
518 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
| 2 | class Discriminator extends ObjectElement {
|
---|
| 3 | constructor(content, meta, attributes) {
|
---|
| 4 | super(content, meta, attributes);
|
---|
| 5 | this.element = 'discriminator';
|
---|
| 6 | }
|
---|
| 7 | get propertyName() {
|
---|
| 8 | return this.get('propertyName');
|
---|
| 9 | }
|
---|
| 10 | set propertyName(propertyName) {
|
---|
| 11 | this.set('propertyName', propertyName);
|
---|
| 12 | }
|
---|
| 13 | get mapping() {
|
---|
| 14 | return this.get('mapping');
|
---|
| 15 | }
|
---|
| 16 | set mapping(mapping) {
|
---|
| 17 | this.set('mapping', mapping);
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | export default Discriminator; |
---|
Note:
See
TracBrowser
for help on using the repository browser.