Class Element

java.lang.Object
aQute.bnd.differ.Element
All Implemented Interfaces:
Tree, Comparable<Tree>

class Element extends Object implements Tree
An element can be compared to another element of the same type. Elements with the same name and same place in the hierarchy should have the same type. The idea is that for a certain resource type you create an element (Structured or Leaf). This process is done for the newer and older resource.

A Leaf type has a value, comparison is rather simple in this case.

A Structured type has named children. The comparison between the newer and older child elements is then done on their name. Two elements with the same name are then matched.

The classes are prepared for extension but so far it turned out to be unnecessary.