2020-02-03 10:51:29 +01:00
|
|
|
package org.gcube.informationsystem.types.reference;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
2020-02-03 10:51:29 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
|
|
|
import org.gcube.informationsystem.types.annotations.Abstract;
|
2020-02-03 10:57:41 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.properties.PropertyDefinition;
|
2020-02-03 10:51:29 +01:00
|
|
|
|
|
|
|
@Abstract
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown=true)
|
|
|
|
//@JsonDeserialize(as=TypeImpl.class) Do not uncomment to manage subclasses
|
2020-02-03 10:57:41 +01:00
|
|
|
public interface Type extends IdentifiableElement {
|
2020-02-03 10:51:29 +01:00
|
|
|
|
|
|
|
public static final String NAME = "Type"; //Type.class.getSimpleName();
|
|
|
|
|
|
|
|
public static final String NAME_PROPERTY = "name";
|
|
|
|
public static final String DESCRIPTION_PROPERTY = "description";
|
|
|
|
public static final String ABSTRACT_PROPERTY = "abstract";
|
|
|
|
public static final String TYPE_SUPERCLASSES_PROPERTY = "superClasses";
|
2020-02-03 10:57:41 +01:00
|
|
|
public static final String PROPERTIES_PROPERTY = "properties";
|
2020-02-03 10:51:29 +01:00
|
|
|
|
|
|
|
public String getName();
|
|
|
|
|
|
|
|
public String getDescription();
|
|
|
|
|
|
|
|
public boolean isAbstract();
|
|
|
|
|
|
|
|
public Set<String> getSuperClasses();
|
|
|
|
|
2020-02-03 10:57:41 +01:00
|
|
|
public Set<PropertyDefinition> getProperties();
|
|
|
|
|
2020-02-03 10:51:29 +01:00
|
|
|
}
|