Class PomReader.PomDependencyData

java.lang.Object
org.apache.ivy.plugins.parser.m2.PomReader.PomDependencyMgtElement
org.apache.ivy.plugins.parser.m2.PomReader.PomDependencyData
All Implemented Interfaces:
PomDependencyMgt
Enclosing class:
PomReader

public class PomReader.PomDependencyData extends PomReader.PomDependencyMgtElement
  • Field Details

    • depElement

      private final Element depElement
  • Constructor Details

  • Method Details

    • getScope

      public String getScope()
      Specified by:
      getScope in interface PomDependencyMgt
      Overrides:
      getScope in class PomReader.PomDependencyMgtElement
    • getClassifier

      public String getClassifier()
    • getType

      public String getType()
    • isOptional

      public boolean isOptional()
    • emptyIsNull

      private String emptyIsNull(String val)
      We return null where certain elements within a pom don't have a value specified. For example, there are pom.xml out there which just use "" in the dependencies. (dependencies in org.seleniumhq.selenium:selenium-java:3.141.59 are one such example) We do this so that callers of such elements don't have to keep repeating checks for empty value. For us an empty value, for many of such elements, is really the same as that element not being specified
      Parameters:
      val - The value to check
      Returns: