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

com.farao_community.farao.gridcapa.task_manager.api.ParameterDto Maven / Gradle / Ivy

There is a newer version: 1.32.1
Show newest version
/*
 * Copyright (c) 2024, RTE (http://www.rte-france.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.farao_community.farao.gridcapa.task_manager.api;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author Vincent Bochet {@literal }
 * @author Marc Schwitzguebel {@literal }
 */

public class ParameterDto {
    private String id;
    private String name;
    private int displayOrder;
    private String parameterType;
    private String sectionTitle;
    private int sectionOrder;
    private String value;
    private String defaultValue;

    @JsonCreator
    public ParameterDto(@JsonProperty("id") String id,
                        @JsonProperty("name") String name,
                        @JsonProperty("displayOrder") int displayOrder,
                        @JsonProperty("parameterType") String parameterType,
                        @JsonProperty("sectionTitle") String sectionTitle,
                        @JsonProperty("sectionOrder") int sectionOrder,
                        @JsonProperty("value") String value,
                        @JsonProperty("defaultValue") String defaultValue) {
        this.id = id;
        this.name = name;
        this.displayOrder = displayOrder;
        this.parameterType = parameterType;
        this.sectionTitle = sectionTitle;
        this.sectionOrder = sectionOrder;
        this.value = value;
        this.defaultValue = defaultValue;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(int displayOrder) {
        this.displayOrder = displayOrder;
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }

    public String getSectionTitle() {
        return sectionTitle;
    }

    public void setSectionTitle(String sectionTitle) {
        this.sectionTitle = sectionTitle;
    }

    public int getSectionOrder() {
        return sectionOrder;
    }

    public void setSectionOrder(int sectionOrder) {
        this.sectionOrder = sectionOrder;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy