All Superinterfaces:
Comparable<LinkedEntity>, Element, PropertyElement, Serializable
All Known Implementing Classes:
LinkedEntityImpl

@TypeMetadata(name="LinkedEntity", description=" A convenient type to define a Resource in terms of: mandatory/recommended ConsistsOf->Facets; suggested IsRelatedTo->Resource.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface LinkedEntity extends PropertyElement, Comparable<LinkedEntity>
A property type for defining relationships between entities, including cardinality constraints.

This is used to specify:

  • Mandatory or recommended ConsistsOf relationships to facets.
  • Suggested IsRelatedTo relationships to other resources.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

  • Method Details

    • getSource

      @ISProperty(name="source", readonly=true, mandatory=true, nullable=false) String getSource()
      Returns the name of the source entity type.
      Returns:
      The source type name.
    • setSource

      void setSource(String source)
      Sets the name of the source entity type.
      Parameters:
      source - The source type name.
    • getRelation

      @ISProperty(name="relation", readonly=true, mandatory=true, nullable=false) String getRelation()
      Returns the name of the relation type.
      Returns:
      The relation type name.
    • setRelation

      void setRelation(String relation)
      Sets the name of the relation type.
      Parameters:
      relation - The relation type name.
    • getTarget

      @ISProperty(name="target", readonly=true, mandatory=true, nullable=false) String getTarget()
      Returns the name of the target entity type.
      Returns:
      The target type name.
    • setTarget

      void setTarget(String target)
      Sets the name of the target entity type.
      Parameters:
      target - The target type name.
    • getDescription

      @ISProperty(name="description", readonly=true, mandatory=true, nullable=false) String getDescription()
      Returns the description of the link.
      Returns:
      The description.
    • setDescription

      void setDescription(String description)
      Sets the description of the link.
      Parameters:
      description - The description.
    • getMin

      @ISProperty(name="min", readonly=true, mandatory=true, nullable=false) Integer getMin()
      Returns the minimum cardinality of the link.
      Returns:
      The minimum cardinality.
    • setMin

      void setMin(Integer min)
      Sets the minimum cardinality of the link.
      Parameters:
      min - The minimum cardinality.
    • getMax

      @ISProperty(name="max", readonly=true, mandatory=true, nullable=true) Integer getMax()
      Returns the maximum cardinality of the link.
      Returns:
      The maximum cardinality.
    • setMax

      void setMax(Integer max)
      Sets the maximum cardinality of the link.
      Parameters:
      max - The maximum cardinality.