AttributeInstance attribute = element.getAttributes()[i]; ParseExecutor executor = new ParseExecutor(attribute, null, parent.getContext(), parser); .walk(attribute.getAttributeDeclaration(), executor, parent.getContext()); ElementInitializer initer = new ElementInitializer(element, node, parent.getContext()); parser.getBindingWalker() .walk(element.getElementDeclaration(), initer, container(), parent.getContext()); setContext(new DefaultPicoContainer(parent.getContext()));
} else { ParseExecutor executor = new ParseExecutor(element, node, getParentHandler().getContext(), parser); executor, container(), getParentHandler().getContext()); parent.getContext().removeChildContainer(getContext());
public void startChildHandler(Handler child) { // childHandlers.add(child); node.addChild(child.getParseNode()); // initialize the context for the handler if (child instanceof ElementHandler) { // get the containing type (we do this for anonymous complex types) ElementInstance childInstance = (ElementInstance) child.getComponent(); ContextInitializer initer = new ContextInitializer(childInstance, node, child.getContext()); parser.getBindingWalker() .walk(element.getElementDeclaration(), initer, container(), getContext()); } }