java - How do I store data in a wrapper class from a method deep in the stack? -
i have class (xmlbuilder) builds xml doc. within process parse data make fit in xml model. capture data related parsing. have wrapper class (xmlbuilderwrapper) designed capture parsed data.
my question is: how access wrapper class parser (or vice versa) store data? don't want return data through stack if can it.
i assuming using form of recursion. can pass reference of wrapper parameter. don't have return anything. instantiate wrapper before first call of builder , pass reference parameter. changes make wrapper occur on same object, no matter how deep in stack.
also, if understood correctly, wrapper class isn't wrapper. more model.
Comments
Post a Comment