Class XmlRepoDiffer

java.lang.Object
aQute.bnd.differ.XmlRepoDiffer

public final class XmlRepoDiffer extends Object
  • Method Details

    • resource

      public static aQute.bnd.differ.Element resource(File file) throws Exception
      Returns the differ Element for comparison

      Note that, the filter directives will not be expanded

      Parameters:
      file - the XML resource repository
      Returns:
      the differ Element
      Throws:
      Exception - for any discrepancy
      See Also:
    • resource

      public static aQute.bnd.differ.Element resource(File file, boolean expandFilter) throws Exception
      Returns the differ Element for comparison

      Note that, the filter directives will be expanded if expandFilter is set to true

      Parameters:
      file - the XML resource repository
      expandFilter - the flag to expand filter directives
      Returns:
      the differ Element
      Throws:
      Exception - for any discrepancy
      See Also:
    • mapToElements

      public static List<aQute.bnd.differ.Element> mapToElements(Map<String,? extends Object> entries, Type type, boolean expandFilter)
      Creates list of Elements associating the specified entries
      Parameters:
      entries - the entries to associate
      type - the type to use for comparison
      expandFilter - the flag to expand filter directives
      Returns:
      the list of Elements