80 lines
1.3 KiB
Java
80 lines
1.3 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.informationsystem.impl.entity;
|
|
|
|
import java.util.Calendar;
|
|
|
|
import org.gcube.informationsystem.model.entity.Header;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
*
|
|
*/
|
|
public class HeaderImpl implements Header {
|
|
|
|
protected String id;
|
|
protected String creator;
|
|
protected Calendar creationTime;
|
|
protected Calendar lastUpdateTime;
|
|
protected String name;
|
|
protected String description;
|
|
protected String version;
|
|
|
|
@SuppressWarnings("unused")
|
|
private HeaderImpl(){
|
|
|
|
}
|
|
|
|
protected HeaderImpl(String name, String description, String version){
|
|
this.name = name;
|
|
this.description = description;
|
|
this.version = version;
|
|
}
|
|
|
|
@Override
|
|
public String getID() {
|
|
return this.id;
|
|
}
|
|
|
|
protected void setID(String id){
|
|
this.id = id;
|
|
}
|
|
|
|
@Override
|
|
public String getCreator() {
|
|
return this.creator;
|
|
}
|
|
|
|
protected void setCreator(String creator){
|
|
this.creator = creator;
|
|
}
|
|
|
|
@Override
|
|
public Calendar getCreationTime() {
|
|
return creationTime;
|
|
}
|
|
|
|
@Override
|
|
public Calendar getLastUpdateTime() {
|
|
return lastUpdateTime;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return this.description;
|
|
}
|
|
|
|
|
|
@Override
|
|
public String getVersion() {
|
|
return this.version;
|
|
}
|
|
|
|
}
|