96 lines
1.6 KiB
Java
96 lines
1.6 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.sdmxexportwizardtd.shared;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* @author "Federico De Faveri defaveri@isti.cnr.it"
|
|
*
|
|
*/
|
|
public class Codelist implements Serializable {
|
|
|
|
private static final long serialVersionUID = -8353499109124097114L;
|
|
|
|
protected String id;
|
|
protected String name;
|
|
protected String agencyId;
|
|
protected String version;
|
|
protected String description;
|
|
|
|
|
|
public Codelist(){}
|
|
|
|
/**
|
|
* @param id
|
|
* @param name
|
|
* @param agencyId
|
|
*/
|
|
public Codelist(String id, String name, String agencyId,String version, String description) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.agencyId = agencyId;
|
|
this.version = version;
|
|
this.description = description;
|
|
}
|
|
|
|
/**
|
|
* @return the id
|
|
*/
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
/**
|
|
* @return the name
|
|
*/
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
/**
|
|
* @return the agencyId
|
|
*/
|
|
public String getAgencyId() {
|
|
return agencyId;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the version
|
|
*/
|
|
public String getVersion() {
|
|
return version;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the version
|
|
*/
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("Codelist [id=");
|
|
builder.append(id);
|
|
builder.append(", name=");
|
|
builder.append(name);
|
|
builder.append(", agencyId=");
|
|
builder.append(agencyId);
|
|
builder.append(", version=");
|
|
builder.append(version);
|
|
builder.append(", description=");
|
|
builder.append(description);
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
}
|
|
}
|