Interface ConstructNode

    • Method Detail

      • construct

        Object construct​(Node node)
        Construct a Java instance with all the properties injected when it is possible.
        Parameters:
        node - composed Node
        Returns:
        a complete Java instance or empty collection instance if it is recursive
      • constructRecursive

        default void constructRecursive​(Node node,
                                        Object object)
        Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself. (no need to implement this method for non-recursive data structures). Fail with a reminder to provide the seconds step for a recursive structure
        Parameters:
        node - composed Node
        object - the instance constructed earlier by construct(Node node) for the provided Node