UNPKG

@dasch-swiss/dsp-js

Version:
78 lines 3.34 kB
import { __decorate, __metadata } from "tslib"; import { JsonObject, JsonProperty } from 'json2typescript'; import { Constants } from '../Constants'; import { HasCardinalityForPropertyConverter } from '../custom-converters/has-cardinality-for-property-converter'; import { StringLiteralToStringConverter } from '../custom-converters/string-literal-to-string-converter'; import { StringLiteralToStringLiteralArrayConverter } from '../custom-converters/string-literal-to-string-literal-array-converter'; import { SubClassOfConverter } from '../custom-converters/subclass-of-converter'; import { ClassDefinition } from './class-definition'; /** * @category Model V2 */ let StandoffClassDefinition = class StandoffClassDefinition extends ClassDefinition { constructor() { super(...arguments); this.id = ''; this.subClassOf = []; this.comment = undefined; this.label = undefined; this.propertiesList = []; } }; __decorate([ JsonProperty('@id', String), __metadata("design:type", Object) ], StandoffClassDefinition.prototype, "id", void 0); __decorate([ JsonProperty(Constants.SubClassOf, SubClassOfConverter), __metadata("design:type", Array) ], StandoffClassDefinition.prototype, "subClassOf", void 0); __decorate([ JsonProperty(Constants.Comment, String, true), __metadata("design:type", String) ], StandoffClassDefinition.prototype, "comment", void 0); __decorate([ JsonProperty(Constants.Label, String, true), __metadata("design:type", String) ], StandoffClassDefinition.prototype, "label", void 0); __decorate([ JsonProperty(Constants.SubClassOf, HasCardinalityForPropertyConverter), __metadata("design:type", Array) ], StandoffClassDefinition.prototype, "propertiesList", void 0); StandoffClassDefinition = __decorate([ JsonObject('StandoffClassDefinition') ], StandoffClassDefinition); export { StandoffClassDefinition }; /** * @category Model V2 */ let StandoffClassDefinitionWithAllLanguages = class StandoffClassDefinitionWithAllLanguages extends StandoffClassDefinition { constructor() { super(...arguments); this.comment = undefined; this.comments = []; this.label = undefined; this.labels = []; } }; __decorate([ JsonProperty(Constants.Comment, StringLiteralToStringConverter, true), __metadata("design:type", String) ], StandoffClassDefinitionWithAllLanguages.prototype, "comment", void 0); __decorate([ JsonProperty(Constants.Comment, StringLiteralToStringLiteralArrayConverter, true), __metadata("design:type", Array) ], StandoffClassDefinitionWithAllLanguages.prototype, "comments", void 0); __decorate([ JsonProperty(Constants.Label, StringLiteralToStringConverter, true), __metadata("design:type", String) ], StandoffClassDefinitionWithAllLanguages.prototype, "label", void 0); __decorate([ JsonProperty(Constants.Label, StringLiteralToStringLiteralArrayConverter, true), __metadata("design:type", Array) ], StandoffClassDefinitionWithAllLanguages.prototype, "labels", void 0); StandoffClassDefinitionWithAllLanguages = __decorate([ JsonObject('StandoffClassDefinitionWithAllLanguages') ], StandoffClassDefinitionWithAllLanguages); export { StandoffClassDefinitionWithAllLanguages }; //# sourceMappingURL=standoff-class-definition.js.map