Annotation Interface RelatedResourcesEntry


@Target(TYPE) @Retention(RUNTIME) public @interface RelatedResourcesEntry
Defines a relationship between resources within a ResourceSchema.
Author:
Luca Frosini (ISTI - CNR)
  • Element Details

    • source

      Class<? extends Resource> source
      The source resource of the relationship.
      Returns:
      The source resource class.
      Default:
      org.gcube.informationsystem.model.reference.entities.Resource.class
    • relation

      Class<? extends IsRelatedTo> relation
      The relation type connecting the resources.
      Returns:
      The relation class.
      Default:
      org.gcube.informationsystem.model.reference.relations.IsRelatedTo.class
    • target

      Class<? extends Resource> target
      The target resource of the relationship.
      Returns:
      The target resource class.
      Default:
      org.gcube.informationsystem.model.reference.entities.Resource.class
    • description

      String description
      A description of the relationship.
      Returns:
      The description.
      Default:
      ""