information-system-model/src/main/java/org/gcube/informationsystem/model/impl/entities/EntityImpl.java

55 lines
1.3 KiB
Java
Raw Normal View History

/**
*
*/
package org.gcube.informationsystem.model.impl.entities;
2023-05-12 17:47:58 +02:00
import java.util.List;
2023-04-28 14:34:29 +02:00
import java.util.Map;
import java.util.UUID;
import org.gcube.com.fasterxml.jackson.annotation.JsonSetter;
2020-07-07 17:04:25 +02:00
import org.gcube.com.fasterxml.jackson.annotation.JsonTypeName;
import org.gcube.informationsystem.base.impl.entities.EntityElementImpl;
2023-04-28 14:34:29 +02:00
import org.gcube.informationsystem.model.reference.ERElement;
import org.gcube.informationsystem.model.reference.entities.Entity;
/**
* @author Luca Frosini (ISTI - CNR)
*/
@JsonTypeName(value=Entity.NAME)
public abstract class EntityImpl extends EntityElementImpl implements Entity {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -4488771434017342703L;
2023-05-12 17:47:58 +02:00
protected List<String> supertypes;
protected String expectedtype;
2023-04-28 14:34:29 +02:00
protected Map<UUID,String> contexts;
protected EntityImpl(){
super();
2023-04-18 17:51:23 +02:00
this.metadata = null;
}
2023-05-12 17:47:58 +02:00
@Override
public List<String> getSupertypes() {
return this.supertypes;
}
@Override
public String getExpectedtype() {
return this.expectedtype;
}
2023-04-28 14:34:29 +02:00
public Map<UUID,String> getContexts(){
return this.contexts;
}
@JsonSetter(value = ERElement.CONTEXTS_PROPERTY)
protected void setContexts(Map<UUID,String> contexts) {
this.contexts = contexts;
}
}