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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -