Class Pom.Dependency

    • Constructor Detail

      • Dependency

        public Dependency()
    • Method Detail

      • getArtifactUri

        public java.net.URI getArtifactUri()
      • getCoordinates

        public java.lang.String getCoordinates()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • findDependencies

        public java.util.Collection<Pom.Dependency> findDependencies​(java.lang.String groupId,
                                                                     java.lang.String artifactId)
        Finds transitive dependencies of this dependency that match the provided group and artifact ids.
        Parameters:
        groupId - The groupId to match
        artifactId - The artifactId to match.
        Returns:
        Transitive dependencies with any version matching the provided group and artifact id, if any.
      • findDependencies

        public java.util.Collection<Pom.Dependency> findDependencies​(java.util.function.Predicate<Pom.Dependency> matcher)
        Finds transitive dependencies of this dependency that match the given predicate.
        Parameters:
        matcher - A dependency test.
        Returns:
        Transitive dependencies with any version matching the given predicate.