public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
/** * Returns a {@link ContentHandler} to feed SAX events into. * * <p> * The client of this class can feed SAX events into the handler * to parse a document into this DOM forest. * * This version requires that the DOM object to be created and registered * to the map beforehand. */ private ContentHandler getParserHandler( Document dom ) { ContentHandler handler = new DOMBuilder(dom,locatorTable,outerMostBindings); handler = new WhitespaceStripper(handler,errorReceiver,entityResolver); handler = new VersionChecker(handler,errorReceiver,entityResolver); // insert the reference finder so that // included/imported schemas will be also parsed XMLFilterImpl f = logic.createExternalReferenceFinder(this); f.setContentHandler(handler); if(errorReceiver!=null) f.setErrorHandler(errorReceiver); if(entityResolver!=null) f.setEntityResolver(entityResolver); return f; }
/** * Returns a {@link ContentHandler} to feed SAX events into. * * <p> * The client of this class can feed SAX events into the handler * to parse a document into this DOM forest. * * This version requires that the DOM object to be created and registered * to the map beforehand. */ private ContentHandler getParserHandler( Document dom ) { ContentHandler handler = new DOMBuilder(dom,locatorTable,outerMostBindings); handler = new WhitespaceStripper(handler,errorReceiver,entityResolver); handler = new VersionChecker(handler,errorReceiver,entityResolver); // insert the reference finder so that // included/imported schemas will be also parsed XMLFilterImpl f = logic.createExternalReferenceFinder(this); f.setContentHandler(handler); if(errorReceiver!=null) f.setErrorHandler(errorReceiver); if(entityResolver!=null) f.setEntityResolver(entityResolver); return f; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
/** * Returns a {@link ContentHandler} to feed SAX events into. * * <p> * The client of this class can feed SAX events into the handler * to parse a document into this DOM forest. * * This version requires that the DOM object to be created and registered * to the map beforehand. */ private ContentHandler getParserHandler( Document dom ) { ContentHandler handler = new DOMBuilder(dom,locatorTable,outerMostBindings); handler = new WhitespaceStripper(handler,errorReceiver,entityResolver); handler = new VersionChecker(handler,errorReceiver,entityResolver); // insert the reference finder so that // included/imported schemas will be also parsed XMLFilterImpl f = logic.createExternalReferenceFinder(this); f.setContentHandler(handler); if(errorReceiver!=null) f.setErrorHandler(errorReceiver); if(entityResolver!=null) f.setEntityResolver(entityResolver); return f; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
/** * Returns a {@link ContentHandler} to feed SAX events into. * * <p> * The client of this class can feed SAX events into the handler * to parse a document into this DOM forest. * * This version requires that the DOM object to be created and registered * to the map beforehand. */ private ContentHandler getParserHandler( Document dom ) { ContentHandler handler = new DOMBuilder(dom,locatorTable,outerMostBindings); handler = new WhitespaceStripper(handler,errorReceiver,entityResolver); handler = new VersionChecker(handler,errorReceiver,entityResolver); // insert the reference finder so that // included/imported schemas will be also parsed XMLFilterImpl f = logic.createExternalReferenceFinder(this); f.setContentHandler(handler); if(errorReceiver!=null) f.setErrorHandler(errorReceiver); if(entityResolver!=null) f.setEntityResolver(entityResolver); return f; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
/** * Returns a {@link ContentHandler} to feed SAX events into. * * <p> * The client of this class can feed SAX events into the handler * to parse a document into this DOM forest. * * This version requires that the DOM object to be created and registered * to the map beforehand. */ private ContentHandler getParserHandler( Document dom ) { ContentHandler handler = new DOMBuilder(dom,locatorTable,outerMostBindings); handler = new WhitespaceStripper(handler,errorReceiver,entityResolver); handler = new VersionChecker(handler,errorReceiver,entityResolver); // insert the reference finder so that // included/imported schemas will be also parsed XMLFilterImpl f = logic.createExternalReferenceFinder(this); f.setContentHandler(handler); if(errorReceiver!=null) f.setErrorHandler(errorReceiver); if(entityResolver!=null) f.setEntityResolver(entityResolver); return f; }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { super.startElement(namespaceURI, localName, qName, atts); Element e = getCurrentElement(); locatorTable.storeStartLocation( e, locator ); // check if this element is an outer-most <jaxb:bindings> if( Const.JAXB_NSURI.equals(e.getNamespaceURI()) && "bindings".equals(e.getLocalName()) ) { // if this is the root node (meaning that this file is an // external binding file) or if the parent is XML Schema element // (meaning that this is an "inlined" external binding) Node p = e.getParentNode(); if( p instanceof Document ||( p instanceof Element && !e.getNamespaceURI().equals(p.getNamespaceURI()))) { outerMostBindings.add(e); // remember this value } } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }