2016-10-25 12:46:50 +02:00
|
|
|
package org.gcube.data.analysis.dataminermanagercl.shared.data;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-10 12:44:22 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-10-25 12:46:50 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class TableItemSimple implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -1204016958353092014L;
|
|
|
|
private String id;
|
|
|
|
private String name;
|
|
|
|
private String description;
|
|
|
|
private String type;
|
|
|
|
private ArrayList<ColumnItem> columns;
|
2017-03-30 18:37:56 +02:00
|
|
|
private boolean tabularResource;
|
2016-10-25 12:46:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public TableItemSimple() {
|
|
|
|
super();
|
|
|
|
columns = new ArrayList<ColumnItem>();
|
2017-03-30 18:37:56 +02:00
|
|
|
tabularResource = false;
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-05-10 12:44:22 +02:00
|
|
|
*
|
|
|
|
* @param id
|
|
|
|
* id
|
2016-10-25 12:46:50 +02:00
|
|
|
* @param name
|
2017-05-10 12:44:22 +02:00
|
|
|
* name
|
2016-10-25 12:46:50 +02:00
|
|
|
* @param description
|
2017-05-10 12:44:22 +02:00
|
|
|
* description
|
2016-10-25 12:46:50 +02:00
|
|
|
* @param type
|
2017-05-10 12:44:22 +02:00
|
|
|
* type
|
2016-10-25 12:46:50 +02:00
|
|
|
*/
|
2017-05-10 12:44:22 +02:00
|
|
|
public TableItemSimple(String id, String name, String description, String type) {
|
2016-10-25 12:46:50 +02:00
|
|
|
super();
|
|
|
|
columns = new ArrayList<ColumnItem>();
|
|
|
|
this.id = id;
|
|
|
|
this.name = name;
|
|
|
|
this.description = description;
|
|
|
|
this.type = type;
|
2017-03-30 18:37:56 +02:00
|
|
|
tabularResource = false;
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-05-10 12:44:22 +02:00
|
|
|
*
|
|
|
|
* @param id
|
|
|
|
* id
|
|
|
|
* @param name
|
|
|
|
* name
|
|
|
|
* @param description
|
|
|
|
* description
|
2016-10-25 12:46:50 +02:00
|
|
|
*/
|
|
|
|
public TableItemSimple(String id, String name, String description) {
|
|
|
|
super();
|
|
|
|
columns = new ArrayList<ColumnItem>();
|
|
|
|
this.id = id;
|
|
|
|
this.name = name;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the name
|
|
|
|
*/
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param name
|
|
|
|
* the name to set
|
|
|
|
*/
|
|
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the description
|
|
|
|
*/
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param description
|
|
|
|
* the description to set
|
|
|
|
*/
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the type
|
|
|
|
*/
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param type
|
|
|
|
* the type to set
|
|
|
|
*/
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the id
|
|
|
|
*/
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param id
|
|
|
|
* the id to set
|
|
|
|
*/
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ArrayList<ColumnItem> getColumns() {
|
|
|
|
return columns;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setColumns(ArrayList<ColumnItem> columns) {
|
|
|
|
this.columns = columns;
|
|
|
|
}
|
|
|
|
|
2017-03-30 18:37:56 +02:00
|
|
|
public boolean isTabularResource() {
|
|
|
|
return tabularResource;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTabularResource(boolean tabularResource) {
|
|
|
|
this.tabularResource = tabularResource;
|
|
|
|
}
|
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2017-05-10 12:44:22 +02:00
|
|
|
return "TableItemSimple [id=" + id + ", name=" + name + ", description=" + description + ", type=" + type
|
|
|
|
+ ", columns=" + columns + ", tabularResource=" + tabularResource + "]";
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|