Class DependsOnImpl<Out extends Software,In extends Software>

java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.relations.RelationElementImpl<S,T>
org.gcube.informationsystem.model.impl.relations.RelationImpl<S,T>
org.gcube.informationsystem.model.impl.relations.IsRelatedToImpl<Out,In>
org.gcube.resourcemanagement.model.impl.relations.isrelatedto.DependsOnImpl<Out,In>
All Implemented Interfaces:
Serializable, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.base.reference.relations.RelationElement<Out,In>, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,In>, org.gcube.informationsystem.model.reference.relations.Relation<Out,In>, DependsOn<Out,In>
Direct Known Subclasses:
IsPluginOfImpl

public class DependsOnImpl<Out extends Software,In extends Software> extends org.gcube.informationsystem.model.impl.relations.IsRelatedToImpl<Out,In> implements DependsOn<Out,In>
Implementation of DependsOn.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Whether the target Software is optional for the source

    Fields inherited from class org.gcube.informationsystem.model.impl.relations.RelationImpl

    additionalProperties, allowedAdditionalKeys, contexts, expectedType, propagationConstraint, supertypes

    Fields inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl

    metadata, source, target, uuid

    Fields inherited from interface org.gcube.resourcemanagement.model.reference.relations.isrelatedto.DependsOn

    NAME, OPTIONAL_PROPERTY, VERSION

    Fields inherited from interface org.gcube.informationsystem.base.reference.Element

    DATETIME_PATTERN, NAME, 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.relations.IsRelatedTo

    NAME

    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

    NAME, PROPAGATION_CONSTRAINT_PROPERTY

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

    NAME, SOURCE_PROPERTY, TARGET_PROPERTY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Protected default constructor
     
    DependsOnImpl(Out source, In target)
    Creates an instance of DependsOn
     
    DependsOnImpl(Out source, In target, org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint)
    Creates an instance of DependsOn
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the target Software is optional for the source, e.g., the optional flag of a dependency in maven.
    void
    setOptional(boolean optional)
    Sets whether the target Software is optional for the source.

    Methods inherited from class org.gcube.informationsystem.model.impl.relations.RelationImpl

    getAdditionalProperties, getAdditionalProperty, getContexts, getExpectedType, getPropagationConstraint, getSupertypes, setAdditionalProperties, setAdditionalProperty, setContexts, setPropagationConstraint

    Methods inherited from class org.gcube.informationsystem.base.impl.relations.RelationElementImpl

    getID, getMetadata, getSource, getTarget, setID, setMetadata, setSource, setTarget

    Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl

    getTypeName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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
  • Field Details

    • optional

      protected boolean optional
      Whether the target Software is optional for the source
  • Constructor Details

    • DependsOnImpl

      protected DependsOnImpl()
      Protected default constructor
    • DependsOnImpl

      public DependsOnImpl(Out source, In target)
      Creates an instance of DependsOn
      Parameters:
      source - the source Software
      target - the target Software
    • DependsOnImpl

      public DependsOnImpl(Out source, In target, org.gcube.informationsystem.model.reference.properties.PropagationConstraint propagationConstraint)
      Creates an instance of DependsOn
      Parameters:
      source - the source Software
      target - the target Software
      propagationConstraint - the Propagation Constraint
  • Method Details

    • isOptional

      public boolean isOptional()
      Whether the target Software is optional for the source, e.g., the optional flag of a dependency in maven.
      Specified by:
      isOptional in interface DependsOn<Out extends Software,In extends Software>
      Returns:
      true if the target Software is optional for the source
    • setOptional

      public void setOptional(boolean optional)
      Sets whether the target Software is optional for the source.
      Specified by:
      setOptional in interface DependsOn<Out extends Software,In extends Software>
      Parameters:
      optional - true if the target Software is optional for the source