Class DependencyVisitorUtils
java.lang.Object
org.eclipse.lemminx.customservice.synapse.dependency.tree.DependencyVisitorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDependencyPath(String key, String type, String projectPath) Returns the path of the given artifact.static List<Dependency>visitAnonymousSequence(Sequence sequence, String projectPath, DependencyLookUp dependencyLookUp) Visits the anonymous sequence and returns the dependencies.static DependencyvisitEndpoint(String endpoint, String projectPath, DependencyLookUp dependencyLookUp) Visits the endpoint and returns the dependencies.static DependencyvisitEndpoint(NamedEndpoint endpoint, String projectPath, DependencyLookUp dependencyLookUp) Visits the endpoint and returns the dependencies.static voidvisitMediator(Mediator node, MediatorDependencyVisitor visitor) Visits the mediator node.static List<Dependency>visitMediators(List<Mediator> mediators, String projectPath, DependencyLookUp dependencyLookUp) Visits the mediators in the list and returns the dependencies.static DependencyvisitMessageStore(String messageStore, String projectPath, DependencyLookUp dependencyLookUp) Visits the message store and returns the dependencies.static DependencyvisitSequence(String projectPath, String sequenceName, DependencyLookUp dependencyLookUp) Visits the sequence and returns the dependencies.static DependencyvisitTemplate(String template, String projectPath, DependencyLookUp dependencyLookUp) Visits the template and returns the dependencies.
-
Constructor Details
-
DependencyVisitorUtils
public DependencyVisitorUtils()
-
-
Method Details
-
visitSequence
public static Dependency visitSequence(String projectPath, String sequenceName, DependencyLookUp dependencyLookUp) Visits the sequence and returns the dependencies.- Parameters:
projectPath- The project path.sequenceName- The sequence name to visit.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
visitAnonymousSequence
public static List<Dependency> visitAnonymousSequence(Sequence sequence, String projectPath, DependencyLookUp dependencyLookUp) Visits the anonymous sequence and returns the dependencies.- Parameters:
sequence- The anonymous sequence to visit.projectPath- The project path.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
visitMediators
public static List<Dependency> visitMediators(List<Mediator> mediators, String projectPath, DependencyLookUp dependencyLookUp) Visits the mediators in the list and returns the dependencies.- Parameters:
mediators- The list of mediators to visit.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
visitMediator
Visits the mediator node.- Parameters:
node- The mediator node to visit.visitor- The visitor to visit the mediator.
-
visitEndpoint
public static Dependency visitEndpoint(NamedEndpoint endpoint, String projectPath, DependencyLookUp dependencyLookUp) Visits the endpoint and returns the dependencies.- Parameters:
endpoint- The endpoint to visit.projectPath- The project path.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
visitEndpoint
public static Dependency visitEndpoint(String endpoint, String projectPath, DependencyLookUp dependencyLookUp) Visits the endpoint and returns the dependencies.- Parameters:
endpoint- The endpoint to visit.projectPath- The project path.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
visitTemplate
public static Dependency visitTemplate(String template, String projectPath, DependencyLookUp dependencyLookUp) Visits the template and returns the dependencies.- Parameters:
template- The template to visit.projectPath- The project path.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-
getDependencyPath
Returns the path of the given artifact.- Parameters:
key- The key of the artifact.type- The type of the artifact.projectPath- The project path.- Returns:
- The path of the artifact.
-
visitMessageStore
public static Dependency visitMessageStore(String messageStore, String projectPath, DependencyLookUp dependencyLookUp) Visits the message store and returns the dependencies.- Parameters:
messageStore- The message store to visit.projectPath- The project path.dependencyLookUp- The lookup table for already visited nodes.- Returns:
- The list of dependencies.
-