public void addTo(BindInfo bi) { if(contents==null) return; for (Object o : contents) { if(o instanceof BIDeclaration) bi.addDecl((BIDeclaration)o); // this is really PITA! I can't get the source location if(o instanceof DomHandlerEx.DomAndLocation) { DomHandlerEx.DomAndLocation e = (DomHandlerEx.DomAndLocation)o; String nsUri = e.element.getNamespaceURI(); if(nsUri==null || nsUri.equals("") || nsUri.equals(WellKnownNamespace.XML_SCHEMA)) continue; // this is definitely not a customization bi.addDecl(new BIXPluginCustomization(e.element,e.loc)); } } } }
public void addTo(BindInfo bi) { if(contents==null) return; for (Object o : contents) { if(o instanceof BIDeclaration) bi.addDecl((BIDeclaration)o); // this is really PITA! I can't get the source location if(o instanceof DomHandlerEx.DomAndLocation) { DomHandlerEx.DomAndLocation e = (DomHandlerEx.DomAndLocation)o; String nsUri = e.element.getNamespaceURI(); if(nsUri==null || nsUri.equals("") || nsUri.equals(WellKnownNamespace.XML_SCHEMA)) continue; // this is definitely not a customization bi.addDecl(new BIXPluginCustomization(e.element,e.loc)); } } } }
public void addTo(BindInfo bi) { if(contents==null) return; for (Object o : contents) { if(o instanceof BIDeclaration) bi.addDecl((BIDeclaration)o); // this is really PITA! I can't get the source location if(o instanceof DomHandlerEx.DomAndLocation) { DomHandlerEx.DomAndLocation e = (DomHandlerEx.DomAndLocation)o; String nsUri = e.element.getNamespaceURI(); if(nsUri==null || nsUri.equals("") || nsUri.equals(WellKnownNamespace.XML_SCHEMA)) continue; // this is definitely not a customization bi.addDecl(new BIXPluginCustomization(e.element,e.loc)); } } } }
public void addTo(BindInfo bi) { if(contents==null) return; for (Object o : contents) { if(o instanceof BIDeclaration) bi.addDecl((BIDeclaration)o); // this is really PITA! I can't get the source location if(o instanceof DomHandlerEx.DomAndLocation) { DomHandlerEx.DomAndLocation e = (DomHandlerEx.DomAndLocation)o; String nsUri = e.element.getNamespaceURI(); if(nsUri==null || nsUri.equals("") || nsUri.equals(WellKnownNamespace.XML_SCHEMA)) continue; // this is definitely not a customization bi.addDecl(new BIXPluginCustomization(e.element,e.loc)); } } } }
public void addTo(BindInfo bi) { if(contents==null) return; for (Object o : contents) { if(o instanceof BIDeclaration) bi.addDecl((BIDeclaration)o); // this is really PITA! I can't get the source location if(o instanceof DomHandlerEx.DomAndLocation) { DomHandlerEx.DomAndLocation e = (DomHandlerEx.DomAndLocation)o; String nsUri = e.element.getNamespaceURI(); if(nsUri==null || nsUri.equals("") || nsUri.equals(WellKnownNamespace.XML_SCHEMA)) continue; // this is definitely not a customization bi.addDecl(new BIXPluginCustomization(e.element,e.loc)); } } } }
/** * Moves global BIConversion to the right object. */ public void dispatchGlobalConversions( XSSchemaSet schema ) { // also set parent to the global conversions for( Map.Entry<QName,BIConversion> e : globalConversions.entrySet() ) { QName name = e.getKey(); BIConversion conv = e.getValue(); XSSimpleType st = schema.getSimpleType(name.getNamespaceURI(),name.getLocalPart()); if(st==null) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_UNDEFINED_SIMPLE_TYPE.format(name) ); continue; // abort } getBuilder().getOrCreateBindInfo(st).addDecl(conv); } }
/** * Moves global BIConversion to the right object. */ public void dispatchGlobalConversions( XSSchemaSet schema ) { // also set parent to the global conversions for( Map.Entry<QName,BIConversion> e : globalConversions.entrySet() ) { QName name = e.getKey(); BIConversion conv = e.getValue(); XSSimpleType st = schema.getSimpleType(name.getNamespaceURI(),name.getLocalPart()); if(st==null) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_UNDEFINED_SIMPLE_TYPE.format(name) ); continue; // abort } getBuilder().getOrCreateBindInfo(st).addDecl(conv); } }
/** * Moves global BIConversion to the right object. */ public void dispatchGlobalConversions( XSSchemaSet schema ) { // also set parent to the global conversions for( Map.Entry<QName,BIConversion> e : globalConversions.entrySet() ) { QName name = e.getKey(); BIConversion conv = e.getValue(); XSSimpleType st = schema.getSimpleType(name.getNamespaceURI(),name.getLocalPart()); if(st==null) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_UNDEFINED_SIMPLE_TYPE.format(name) ); continue; // abort } getBuilder().getOrCreateBindInfo(st).addDecl(conv); } }
/** * Moves global BIConversion to the right object. */ public void dispatchGlobalConversions( XSSchemaSet schema ) { // also set parent to the global conversions for( Map.Entry<QName,BIConversion> e : globalConversions.entrySet() ) { QName name = e.getKey(); BIConversion conv = e.getValue(); XSSimpleType st = schema.getSimpleType(name.getNamespaceURI(),name.getLocalPart()); if(st==null) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_UNDEFINED_SIMPLE_TYPE.format(name) ); continue; // abort } getBuilder().getOrCreateBindInfo(st).addDecl(conv); } }
/** * Moves global BIConversion to the right object. */ public void dispatchGlobalConversions( XSSchemaSet schema ) { // also set parent to the global conversions for( Map.Entry<QName,BIConversion> e : globalConversions.entrySet() ) { QName name = e.getKey(); BIConversion conv = e.getValue(); XSSimpleType st = schema.getSimpleType(name.getNamespaceURI(),name.getLocalPart()); if(st==null) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_UNDEFINED_SIMPLE_TYPE.format(name) ); continue; // abort } getBuilder().getOrCreateBindInfo(st).addDecl(conv); } }
ann.setAnnotation(bi); bi.addDecl(decl); } catch (SAXException e) {
ann.setAnnotation(bi); bi.addDecl(decl); } catch (SAXException e) {
ann.setAnnotation(bi); bi.addDecl(decl); } catch (SAXException e) {
ann.setAnnotation(bi); bi.addDecl(decl); } catch (SAXException e) {
ann.setAnnotation(bi); bi.addDecl(decl); } catch (SAXException e) {
big.addDecl(globalBinding); big.setOwner(this,null);
big.addDecl(globalBinding); big.setOwner(this,null);
big.addDecl(globalBinding); big.setOwner(this,null);
big.addDecl(globalBinding); big.setOwner(this,null);
big.addDecl(globalBinding); big.setOwner(this,null);