java.lang.Object
org.mule.runtime.ast.graph.api.ComponentAstDependency

@NoInstantiate public class ComponentAstDependency extends Object
Object that represents a dependency on a ComponentAst with a given name and one of a set of given StereotypeModels.
Since:
1.0
  • Constructor Details

    • ComponentAstDependency

      public ComponentAstDependency(ComponentAst component, ComponentParameterAst parameter, String name, Set<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypes)
  • Method Details

    • getComponent

      public ComponentAst getComponent()
      Returns:
      the dependent component.
    • getParameter

      public ComponentParameterAst getParameter()
      Returns:
      the dependent parameter.
    • getName

      public String getName()
      Returns:
      the name of the dependency.
    • getAllowedStereotypes

      public Set<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getAllowedStereotypes()
      Returns:
      the possible stereotypes that are accepted by this dependency.
    • isSatisfiedBy

      public boolean isSatisfiedBy(ComponentAst component)
      Checks if the provided component satisfies this dependency
      Parameters:
      component - the component to check against
      Returns:
      true is the provided component satisfies this dependency, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object