Skip to content
Snippets Groups Projects
select-criterion.ts 449 B
Newer Older
  • Learn to ignore specific revisions
  • François Agneray's avatar
    François Agneray committed
    import { Criterion } from './criterion.model';
    import { Option } from '../../../metamodel/model/option.model';
    
    export class SelectCriterion extends Criterion {
        option: Option;
    
        constructor(id: number, option: Option) {
            super(id);
            this.option = option;
        }
    
        printCriterion(): string {
            return this.option.label;
        }
    
        getCriterionStr(): string {
    
    François Agneray's avatar
    François Agneray committed
            return this.id + ':eq:' + this.option.value;
    
    François Agneray's avatar
    François Agneray committed
        }
    }