Class AbstractImpliedRelationshipsStrategy

java.lang.Object
com.structurizr.model.AbstractImpliedRelationshipsStrategy
All Implemented Interfaces:
ImpliedRelationshipsStrategy
Direct Known Subclasses:
CreateImpliedRelationshipsUnlessAnyRelationshipExistsStrategy, CreateImpliedRelationshipsUnlessSameRelationshipExistsStrategy, DefaultImpliedRelationshipsStrategy

public abstract class AbstractImpliedRelationshipsStrategy extends Object implements ImpliedRelationshipsStrategy
Abstract base class for supplied ImpliedRelationshipsStrategy implementations.
  • Constructor Details

    • AbstractImpliedRelationshipsStrategy

      public AbstractImpliedRelationshipsStrategy()
  • Method Details

    • impliedRelationshipIsAllowed

      protected boolean impliedRelationshipIsAllowed(Element source, Element destination)
    • createImpliedRelationship

      protected Relationship createImpliedRelationship(Relationship relationship, Element source, Element destination)
      Creates an implied relationship based upon the specified relationship, between the specified source and destination elements.
      Parameters:
      relationship - the Relationship on which the implied relationship is based
      source - the implied relationship source
      destination - the implied relationship destination
      Returns:
      a Relationship object representing the implied relationship, or null if one wasn't created