/*
 * Decompiled with CFR 0_114.
 * 
 * Could not load the following classes:
 *  com.stimulsoft.report.dictionary.data.DataCell
 */
package com.stimulsoft.flex.interactionObject;

import com.stimulsoft.report.dictionary.data.DataCell;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement(name="SqlField")
@XmlAccessorType(value=XmlAccessType.FIELD)
public class StiCellData {
    @XmlTransient
    private String name;
    @XmlTransient
    private String data;

    public StiCellData() {
    }

    public StiCellData(String string) {
        this.name = string;
    }

    public StiCellData(DataCell dataCell) {
        this.name = dataCell.getColumnName();
        this.data = dataCell.isNotEmpty() && dataCell.getValue() != null ? dataCell.getValue().toString() : dataCell.getEmptyValue();
    }

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

    public String getName() {
        return this.name;
    }

    public String getData() {
        return this.data;
    }
}

