public void startChildHandler(Handler child) { //childHandlers.add(child); node.addChild( child.getParseNode() ); //initialize the context for the handler if ( child instanceof ElementHandler ) { ElementInstance childInstance = (ElementInstance) child.getComponent(); ContextInitializer initer = new ContextInitializer(childInstance, node, child.getContext()); parser.getBindingWalker() .walk(element.getElementDeclaration(), initer, getContext() ); } }
public void startChildHandler(Handler child) { //childHandlers.add(child); node.addChild(child.getParseNode()); //initialize the context for the handler if (child instanceof ElementHandler) { ElementInstance childInstance = (ElementInstance) child.getComponent(); ContextInitializer initer = new ContextInitializer(childInstance, node, child.getContext()); parser.getBindingWalker().walk(element.getElementDeclaration(), initer, 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) XSDTypeDefinition container = null; if (getParentHandler().getComponent() != null) { container = getParentHandler().getComponent().getTypeDefinition(); } ElementInstance childInstance = (ElementInstance) child.getComponent(); ContextInitializer initer = new ContextInitializer(childInstance, node, child.getContext()); parser.getBindingWalker().walk(element.getElementDeclaration(), initer, container, getContext()); } }