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

org.hisp.dhis.model.datavalueset.DataValueSet Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.hisp.dhis.model.datavalueset;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DataValueSet
{
    @JsonProperty
    private String dataSet;

    @JsonProperty
    private String completeDate;

    @JsonProperty
    private String period;

    @JsonProperty
    private String orgUnit;

    @JsonProperty
    private String attributeOptionCombo;

    @JsonProperty
    private List dataValues = new ArrayList<>();

    public DataValueSet()
    {
    }

    public boolean addDataValue( DataValue dataValue )
    {
        return this.dataValues.add( dataValue );
    }

    @Override
    public String toString()
    {
        return new StringBuilder( "[" )
            .append( "dataSet: " ).append( dataSet ).append( ", " )
            .append( "completeDate: " ).append( completeDate ).append( ", " )
            .append( "period: " ).append( period ).append( ", " )
            .append( "orgUnit: " ).append( orgUnit ).append( ", " )
            .append( "attributeOptionCombo: " ).append( attributeOptionCombo ).append( ", " )
            .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy