Class PomReader.PomDependencyData

    • Field Detail

      • depElement

        private final org.w3c.dom.Element depElement
    • Constructor Detail

      • PomDependencyData

        PomDependencyData​(org.w3c.dom.Element depElement)
    • Method Detail

      • getClassifier

        public java.lang.String getClassifier()
      • getType

        public java.lang.String getType()
      • isOptional

        public boolean isOptional()
      • emptyIsNull

        private java.lang.String emptyIsNull​(java.lang.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: