Class XmlRepoDiffer


  • public final class XmlRepoDiffer
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<aQute.bnd.differ.Element> mapToElements​(java.util.Map<java.lang.String,​? extends java.lang.Object> entries, Type type, boolean expandFilter)
      Creates list of Elements associating the specified entries
      static aQute.bnd.differ.Element resource​(java.io.File file)
      Returns the differ Element for comparison
      static aQute.bnd.differ.Element resource​(java.io.File file, boolean expandFilter)
      Returns the differ Element for comparison
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resource

        public static aQute.bnd.differ.Element resource​(java.io.File file)
                                                 throws java.lang.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:
        java.lang.Exception - for any discrepancy
        See Also:
        resource(File, boolean)
      • resource

        public static aQute.bnd.differ.Element resource​(java.io.File file,
                                                        boolean expandFilter)
                                                 throws java.lang.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:
        java.lang.Exception - for any discrepancy
        See Also:
        resource(File)
      • mapToElements

        public static java.util.List<aQute.bnd.differ.Element> mapToElements​(java.util.Map<java.lang.String,​? extends java.lang.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