public void startChildHandler(Handler child) { this.tree = child.getParseNode(); // this.handler = (ElementHandler) child; }
public Object getValue() { if (documentHandler != null) { return documentHandler.getParseNode().getValue(); } // grab handler on top of stack if (!handlers.isEmpty()) { Handler h = (Handler) handlers.peek(); return h.getParseNode().getValue(); } return null; }
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()); } }