26 lines
856 B
Java
26 lines
856 B
Java
package org.gcube.informationsystem.types.annotations;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
import org.gcube.informationsystem.model.reference.entities.Entity;
|
|
import org.gcube.informationsystem.types.TypeBinder;
|
|
import org.gcube.informationsystem.types.reference.properties.PropertyDefinition;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
* It is used by {@link TypeBinder} to identify which getter method are
|
|
* related to and {@link Entity} {@link PropertyDefinition}.
|
|
* The name of the property is obtained by removing "get" or "is" from method
|
|
* name and lower casing the first letter.
|
|
*/
|
|
@Target(ElementType.TYPE)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface ResourceSchema {
|
|
|
|
ResourceSchemaEntry[] value();
|
|
|
|
}
|