134 lines
1.9 KiB
Java
134 lines
1.9 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.datacatalogue.metadatadiscovery.bean;
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
* The Class MetadataType.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 8, 2016
|
|
*/
|
|
public class MetadataType implements Serializable{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -975360133066572549L;
|
|
|
|
private String id;
|
|
private String name;
|
|
private String description;
|
|
|
|
/**
|
|
* Instantiates a new metadata type.
|
|
*/
|
|
public MetadataType() {
|
|
|
|
}
|
|
|
|
/**
|
|
* Instantiates a new metadata type.
|
|
*
|
|
* @param id the id
|
|
* @param name the name
|
|
* @param description the description
|
|
*/
|
|
public MetadataType(String id, String name, String description) {
|
|
|
|
super();
|
|
this.id = id;
|
|
this.name = name;
|
|
this.description = description;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the id.
|
|
*
|
|
* @return the id
|
|
*/
|
|
public String getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the name.
|
|
*
|
|
* @return the name
|
|
*/
|
|
public String getName() {
|
|
|
|
return name;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the description.
|
|
*
|
|
* @return the description
|
|
*/
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the id.
|
|
*
|
|
* @param id the id to set
|
|
*/
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the name.
|
|
*
|
|
* @param name the name to set
|
|
*/
|
|
public void setName(String name) {
|
|
|
|
this.name = name;
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the description.
|
|
*
|
|
* @param description the description to set
|
|
*/
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("MetadataType [id=");
|
|
builder.append(id);
|
|
builder.append(", name=");
|
|
builder.append(name);
|
|
builder.append(", description=");
|
|
builder.append(description);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
|
|
|
|
}
|