Class XPathNode


  • public class XPathNode
    extends Object
    INTERNAL:

    Purpose: XPathNodes are used together to build a tree. The tree is built from all of the XPath statements specified in the mapping metadata (mappings and policies). This tree is then navigated by an EventObjectBuilder to perform marshal and unmarshal operations.

    The XPaths "a/b" and "a/c" would result in a tree with the root "a" and two child nodes "b" and "c".

    Responsibilities:

    • All tree relationships must be bi-directional.
    • Reference a NodeValue, XPathNodes without a Node value represent grouping elements.
    • Reference an XPathFragment, XPathFragments contain name and namespace information.
    • Must differentiate between child nodes that correspond to elements and those that do not.
    • Must represent special mapping situations like any and self mappings.