Package com.structurizr.model
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Relationship
createImpliedRelationship
(Relationship relationship, Element source, Element destination) Creates an implied relationship based upon the specified relationship, between the specified source and destination elements.protected boolean
impliedRelationshipIsAllowed
(Element source, Element destination) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.structurizr.model.ImpliedRelationshipsStrategy
createImpliedRelationships
-
Constructor Details
-
AbstractImpliedRelationshipsStrategy
public AbstractImpliedRelationshipsStrategy()
-
-
Method Details
-
impliedRelationshipIsAllowed
-
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 basedsource
- the implied relationship sourcedestination
- the implied relationship destination- Returns:
- a Relationship object representing the implied relationship, or null if one wasn't created
-