Class Xpp3DomUtils

java.lang.Object
org.apache.maven.shared.utils.xml.Xpp3DomUtils

public class Xpp3DomUtils extends Object
  • Constructor Details

    • Xpp3DomUtils

      public Xpp3DomUtils()
  • Method Details

    • mergeXpp3Dom

      public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive, Boolean childMergeOverride)
      Parameters:
      dominant - Xpp3Dom
      recessive - Xpp3Dom
      childMergeOverride - true/false.
      Returns:
      Merged dom.
    • mergeXpp3Dom

      public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive)
      Parameters:
      dominant - Xpp3Dom
      recessive - Xpp3Dom
      Returns:
      Merged dom.
    • merge

      public static Xpp3Dom merge(Xpp3Dom dominant, Xpp3Dom recessive, Boolean childMergeOverride)
      Parameters:
      dominant - Xpp3Dom
      recessive - Xpp3Dom
      childMergeOverride - true/false.
      Returns:
      Merged dom.
    • isEmpty

      @Deprecated public static boolean isEmpty(String str)
      Deprecated.
      use str == null || String.isBlank(str) (Java 11+) or org.apache.commons.lang3.StringUtils.isBlank(str)
      Parameters:
      str - the string to be checked
      Returns:
      true if the string is null, empty, or whitespace only; false otherwise