ddprofiler/app/src/main/java/ddprofiler/sources/deprecated/Attribute.java
/**
 * @author Sibo Wang
 * @author ra-mit (edits)
 */
package ddprofiler.sources.deprecated;

@Deprecated
public class Attribute {

    public enum AttributeType {
        INT, FLOAT, LONG, STRING, UNKNOWN;
    }

    private String columnName;
    private AttributeType columnType;
    private int columnSize;

    public Attribute(String column_name) {
        this.columnName = column_name;
        this.columnType = AttributeType.UNKNOWN;
        this.columnSize = -1;
    }

    public Attribute(String column_name, String column_type, int column_size) {
        this.columnName = column_name;
        // TODO: swith(column_type) and transform string into enum
        this.columnType = AttributeType.UNKNOWN;
        this.columnSize = column_size;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String column_name) {
        this.columnName = column_name;
    }

    public AttributeType getColumnType() {
        return columnType;
    }

    public void setColumnType(AttributeType column_type) {
        this.columnType = column_type;
    }

    public int getColumnSize() {
        return columnSize;
    }

    public void setColumnSize(int column_size) {
        this.columnSize = column_size;
    }

    public String toString() {
        return "column name: " + this.columnName + " column type: " + this.columnType + " column size: "
                + this.columnSize;
    }
}
