/** * Copies location information attached to the "src" node to the "dst" node. */ private void copyLocators( Element src, Element dst ) { forest.locatorTable.storeStartLocation( dst, forest.locatorTable.getStartLocation(src) ); forest.locatorTable.storeEndLocation( dst, forest.locatorTable.getEndLocation(src) ); // recursively process child elements Element[] srcChilds = DOMUtils.getChildElements(src); Element[] dstChilds = DOMUtils.getChildElements(dst); for( int i=0; i<srcChilds.length; i++ ) copyLocators( srcChilds[i], dstChilds[i] ); }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
public Locator getLocation(Element e) { return forest.locatorTable.getStartLocation(e); }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
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( JAXWSBindingsConstants.JAXWS_BINDINGS.getNamespaceURI().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) { outerMostBindings.add(e); // remember this value } } }
public Locator getLocation(Element e) { return forest.locatorTable.getStartLocation(e); }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
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( JAXWSBindingsConstants.JAXWS_BINDINGS.getNamespaceURI().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) { outerMostBindings.add(e); // remember this value } } }
/** * Copies location information attached to the "src" node to the "dst" node. */ private void copyLocators( Element src, Element dst ) { forest.locatorTable.storeStartLocation( dst, forest.locatorTable.getStartLocation(src) ); forest.locatorTable.storeEndLocation( dst, forest.locatorTable.getEndLocation(src) ); // recursively process child elements Element[] srcChilds = DOMUtils.getChildElements(src); Element[] dstChilds = DOMUtils.getChildElements(dst); for( int i=0; i<srcChilds.length; i++ ) copyLocators( srcChilds[i], dstChilds[i] ); }
public Locator getLocation(Element e) { return forest.locatorTable.getStartLocation(e); }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
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 } } }
/** * Copies location information attached to the "src" node to the "dst" node. */ private void copyLocators( Element src, Element dst ) { forest.locatorTable.storeStartLocation( dst, forest.locatorTable.getStartLocation(src) ); forest.locatorTable.storeEndLocation( dst, forest.locatorTable.getEndLocation(src) ); // recursively process child elements Element[] srcChilds = DOMUtils.getChildElements(src); Element[] dstChilds = DOMUtils.getChildElements(dst); for( int i=0; i<srcChilds.length; i++ ) copyLocators( srcChilds[i], dstChilds[i] ); }
public Locator getLocation(Element e) { return forest.locatorTable.getStartLocation(e); }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
public void endElement(String namespaceURI, String localName, String qName) { locatorTable.storeEndLocation( getCurrentElement(), locator ); super.endElement(namespaceURI, localName, qName); } }
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 } } }
/** * Copies location information attached to the "src" node to the "dst" node. */ private void copyLocators( Element src, Element dst ) { forest.locatorTable.storeStartLocation( dst, forest.locatorTable.getStartLocation(src) ); forest.locatorTable.storeEndLocation( dst, forest.locatorTable.getEndLocation(src) ); // recursively process child elements Element[] srcChilds = DOMUtils.getChildElements(src); Element[] dstChilds = DOMUtils.getChildElements(dst); for( int i=0; i<srcChilds.length; i++ ) copyLocators( srcChilds[i], dstChilds[i] ); }