33 lines
701 B
Java
33 lines
701 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.informationsystem.impl.entity;
|
|
|
|
import org.gcube.informationsystem.model.entity.Entity;
|
|
import org.gcube.informationsystem.model.entity.Header;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
|
*
|
|
*/
|
|
public abstract class EntityImpl implements Entity {
|
|
|
|
@JsonDeserialize(as = HeaderImpl.class)
|
|
protected Header header;
|
|
|
|
@SuppressWarnings("unused")
|
|
private EntityImpl(){}
|
|
|
|
protected EntityImpl(String name, String description, String version){
|
|
this.header = new HeaderImpl(name, description, version);
|
|
}
|
|
|
|
@Override
|
|
public Header getHeader() {
|
|
return this.header;
|
|
}
|
|
|
|
}
|