public boolean canHandle( QName elementName, Attributes attributes, Handler handler, Handler parent) { if (Parameter.equals(elementName)) { return parent != null && "StoredQuery".equals(parent.getComponent().getName()); } return false; }
private XSDTypeDefinition container() { // get the containing type (we do this for anonymous complex types) XSDTypeDefinition container = null; if (getParentHandler().getComponent() != null) { container = getParentHandler().getComponent().getTypeDefinition(); } return container; }
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()); } }
if (parent.getComponent() instanceof ElementInstance) { ElementInstance parentElement = (ElementInstance) parent.getComponent(); List childParticles = index.getChildElementParticles(parentElement.getElementDeclaration());