Interface CallsFor<Out extends Service,​In extends Service>

  • All Superinterfaces:
    org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,​In>, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.model.reference.relations.Relation<Out,​In>, org.gcube.informationsystem.base.reference.relations.RelationElement<Out,​In>, org.gcube.informationsystem.base.reference.SchemaMixedElement, Serializable
    All Known Subinterfaces:
    Discovers<Out,​In>, Uses<Out,​In>
    All Known Implementing Classes:
    CallsForImpl, DiscoversImpl, UsesImpl

    @TypeMetadata(name="CallsFor",
                  description="CallsFor indicates that a [Service](type:Service) instance can require another [Service](type:Service) instance to properly operate. Motivations similar to the ones for [Requires](type:Requires) relation led to the definition of this relation.",
                  version="1.0.0")
    @Change(version="1.0.0",
            description="First Version")
    public interface CallsFor<Out extends Service,​In extends Service>
    extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,​In>
    CallsFor indicates that a Service instance can require another Service instance to properly operate. Motivations similar to the ones for Requires relation led to the definition of this relation.
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      The name of the CallsFor relation type.
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

        CONTEXTS_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

        ID_PROPERTY, METADATA_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

        PROPAGATION_CONSTRAINT_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

        SOURCE_PROPERTY, TARGET_PROPERTY
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static <Out extends Service,​In extends Service>
      CallsFor<Out,​In>
      getDefaultInstance​(Out out, In in)
      Returns a default instance of CallsFor
      • Methods inherited from interface org.gcube.informationsystem.base.reference.Element

        getTypeName
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

        getContexts
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedType, getSupertypes
      • Methods inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

        getAdditionalProperties, getAdditionalProperty, getPropagationConstraint, getSource, getTarget, setAdditionalProperties, setAdditionalProperty, setPropagationConstraint, setSource, setTarget
      • Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

        getID, getMetadata, setID, setMetadata
    • Method Detail

      • getDefaultInstance

        static <Out extends Service,​In extends Service> CallsFor<Out,​In> getDefaultInstance​(Out out,
                                                                                                        In in)
        Returns a default instance of CallsFor
        Type Parameters:
        Out - the source Service
        In - the target Service
        Parameters:
        out - the source Service instance
        in - the target Service instance
        Returns:
        a default instance of CallsFor