/** * Recursively visits sub-elements and declare all used namespaces. * TODO: the fact that we recognize all namespaces in the extension * is a bad design. */ private void declExtensionNamespace(Element decl, Element target) { // if this comes from external namespaces, add the namespace to // @extensionBindingPrefixes. if( !Const.JAXB_NSURI.equals(decl.getNamespaceURI()) ) declareExtensionNamespace( target, decl.getNamespaceURI() ); NodeList lst = decl.getChildNodes(); for( int i=0; i<lst.getLength(); i++ ) { Node n = lst.item(i); if( n instanceof Element ) declExtensionNamespace( (Element)n, target ); } }
/** * Recursively visits sub-elements and declare all used namespaces. * TODO: the fact that we recognize all namespaces in the extension * is a bad design. */ private void declExtensionNamespace(Element decl, Element target) { // if this comes from external namespaces, add the namespace to // @extensionBindingPrefixes. if( !Const.JAXB_NSURI.equals(decl.getNamespaceURI()) ) declareExtensionNamespace( target, decl.getNamespaceURI() ); NodeList lst = decl.getChildNodes(); for( int i=0; i<lst.getLength(); i++ ) { Node n = lst.item(i); if( n instanceof Element ) declExtensionNamespace( (Element)n, target ); } }
/** * Recursively visits sub-elements and declare all used namespaces. * TODO: the fact that we recognize all namespaces in the extension * is a bad design. */ private void declExtensionNamespace(Element decl, Element target) { // if this comes from external namespaces, add the namespace to // @extensionBindingPrefixes. if( !Const.JAXB_NSURI.equals(decl.getNamespaceURI()) ) declareExtensionNamespace( target, decl.getNamespaceURI() ); NodeList lst = decl.getChildNodes(); for( int i=0; i<lst.getLength(); i++ ) { Node n = lst.item(i); if( n instanceof Element ) declExtensionNamespace( (Element)n, target ); } }
/** * Recursively visits sub-elements and declare all used namespaces. * TODO: the fact that we recognize all namespaces in the extension * is a bad design. */ private void declExtensionNamespace(Element decl, Element target) { // if this comes from external namespaces, add the namespace to // @extensionBindingPrefixes. if( !Const.JAXB_NSURI.equals(decl.getNamespaceURI()) ) declareExtensionNamespace( target, decl.getNamespaceURI() ); NodeList lst = decl.getChildNodes(); for( int i=0; i<lst.getLength(); i++ ) { Node n = lst.item(i); if( n instanceof Element ) declExtensionNamespace( (Element)n, target ); } }
/** * Recursively visits sub-elements and declare all used namespaces. * TODO: the fact that we recognize all namespaces in the extension * is a bad design. */ private void declExtensionNamespace(Element decl, Element target) { // if this comes from external namespaces, add the namespace to // @extensionBindingPrefixes. if( !Const.JAXB_NSURI.equals(decl.getNamespaceURI()) ) declareExtensionNamespace( target, decl.getNamespaceURI() ); NodeList lst = decl.getChildNodes(); for( int i=0; i<lst.getLength(); i++ ) { Node n = lst.item(i); if( n instanceof Element ) declExtensionNamespace( (Element)n, target ); } }