Skip to content
Snippets Groups Projects

Issue #80: Add enumHandler

Merged Rafael Dias requested to merge issue/80 into develop
3 files
+ 58
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
2
@@ -20,6 +20,7 @@
import { RelationType, DataType } from "../common/types";
import { EnumType } from "./enumType";
import { EnumHandler } from "../util/enumHandler";
/** Parameters used to create a Dimension object. */
export interface DimensionOptions {
@@ -96,14 +97,14 @@ export class Dimension {
if (this.relation === RelationType.NONE) {
return {
name: this.name,
dataType: (this.dataType !== DataType.NONE) ? EnumType.stringfyDataType(this.dataType) : this.enumType ,
dataType: EnumHandler.SelectDataType(this.dataType, this.enumType),
description: this.description
};
}
else {
return {
name: this.name,
dataType: (this.dataType !== DataType.NONE) ? EnumType.stringfyDataType(this.dataType) : this.enumType ,
dataType: EnumHandler.SelectDataType(this.dataType, this.enumType) ,
parent: this.parent.name,
relation: Dimension.stringifyRelationType(this.relation),
description: this.description
Loading