information-system-model/src/main/java/org/gcube/informationsystem/types/reference/entities/EntityType.java

40 lines
1.5 KiB
Java
Raw Normal View History

2019-10-24 15:03:14 +02:00
package org.gcube.informationsystem.types.reference.entities;
2019-10-30 09:57:14 +01:00
import java.util.Set;
2020-07-07 17:04:25 +02:00
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.gcube.informationsystem.base.reference.entities.EntityElement;
2019-10-30 09:57:14 +01:00
import org.gcube.informationsystem.types.annotations.ISProperty;
import org.gcube.informationsystem.types.impl.entities.EntityTypeImpl;
2020-02-03 10:51:29 +01:00
import org.gcube.informationsystem.types.reference.Type;
2019-10-24 15:03:14 +02:00
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonDeserialize(as = EntityTypeImpl.class)
2020-02-03 10:51:29 +01:00
public interface EntityType extends Type, EntityElement {
2019-10-24 15:03:14 +02:00
public static final String NAME = "EntityType"; //EntityType.class.getSimpleName();
2019-10-24 15:03:14 +02:00
2019-10-30 09:57:14 +01:00
/* TypeDefinition is just a Java useful class. The type is not created in the IS. Hence the fields must be redefined */
@Override
2020-02-03 10:51:29 +01:00
@ISProperty(name = Type.NAME_PROPERTY, readonly = true, mandatory = true, nullable = false)
2019-10-30 09:57:14 +01:00
public String getName();
@Override
2020-02-03 10:51:29 +01:00
@ISProperty(name = Type.DESCRIPTION_PROPERTY, readonly = false, mandatory = true, nullable = false)
2019-10-30 09:57:14 +01:00
public String getDescription();
@Override
2020-02-03 10:51:29 +01:00
@ISProperty(name = Type.ABSTRACT_PROPERTY, readonly = true, mandatory = true, nullable = false)
2019-10-30 09:57:14 +01:00
public boolean isAbstract();
@Override
2020-02-03 10:51:29 +01:00
@ISProperty(name = Type.TYPE_SUPERCLASSES_PROPERTY, readonly = true, mandatory = true, nullable = false)
2019-10-30 09:57:14 +01:00
public Set<String> getSuperClasses();
/* TypeDefinition is just a Java useful class. The type is not created in the IS. Hence the fields must be redefined */
2019-10-24 15:03:14 +02:00
}