All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.ird.observe.dto.report.ReportVariable Maven / Gradle / Ivy


package fr.ird.observe.dto.report;

/*-
 * #%L
 * ObServe Toolkit :: Dto
 * %%
 * Copyright (C) 2017 - 2021 Ultreia.io
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

import fr.ird.observe.dto.ObserveDto;

import java.io.Serializable;
import java.util.Set;

/**
 * La définition d'une variable utilisable dans un report.
 *
 * @author Tony Chemit - [email protected]
 * @since 1.7
 */
public class ReportVariable implements Serializable, ObserveDto {

    public final static String PROPERTY_NAME = "name";

    public final static String PROPERTY_TYPE = "type";

    public final static String PROPERTY_REQUEST = "request";

    public final static String PROPERTY_VALUES = "values";

    public final static String PROPERTY_SELECTED_VALUE = "selectedValue";

    private static final long serialVersionUID = 1L;

    protected final String name;

    protected final Class type;

    protected final String request;

    protected Set values;

    protected V selectedValue;

    public ReportVariable(String name, Class type, String request) {
        this.name = name;
        this.type = type;
        this.request = request;
    }

    public String getName() {
        return name;
    }

    public Class getType() {
        return type;
    }

    public String getRequest() {
        return request;
    }

    public Set getValues() {
        return values;
    }

    public void setValues(Set values) {
        this.values = values;
    }

    public V getSelectedValue() {
        return selectedValue;
    }

    public void setSelectedValue(V selectedValue) {
        this.selectedValue = selectedValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy