public void checkDoubleDefError( XSDeclaration c ) throws SAXException { if(c==null || ignorableDuplicateComponent(c)) return; reportError( Messages.format(Messages.ERR_DOUBLE_DEFINITION,c.getName()) ); reportError( Messages.format(Messages.ERR_DOUBLE_DEFINITION_ORIGINAL), c.getLocator() ); }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action1()throws SAXException { XSModelGroupDecl oldGrp = $runtime.currentSchema.getModelGroupDecl(newGrp.getName()); if(oldGrp==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_MODELGROUP,newGrp.getName()) ); } else { newGrp.redefine((ModelGroupDeclImpl)oldGrp); $runtime.currentSchema.addModelGroupDecl(newGrp,true); } }
private void action2()throws SAXException { XSComplexType oldCt = $runtime.currentSchema.getComplexType(newCt.getName()); if(oldCt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_COMPLEXTYPE,newCt.getName()) ); } else { newCt.redefine((ComplexTypeImpl)oldCt); $runtime.currentSchema.addComplexType(newCt,true); } }
private void action2()throws SAXException { XSComplexType oldCt = $runtime.currentSchema.getComplexType(newCt.getName()); if(oldCt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_COMPLEXTYPE,newCt.getName()) ); } else { newCt.redefine((ComplexTypeImpl)oldCt); $runtime.currentSchema.addComplexType(newCt,true); } }
private void action0()throws SAXException { XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName()); if(oldAg==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP,newAg.getName()) ); } else { newAg.redefine((AttGroupDeclImpl)oldAg); $runtime.currentSchema.addAttGroupDecl(newAg,true); } }
private void action2()throws SAXException { XSComplexType oldCt = $runtime.currentSchema.getComplexType(newCt.getName()); if(oldCt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_COMPLEXTYPE,newCt.getName()) ); } else { newCt.redefine((ComplexTypeImpl)oldCt); $runtime.currentSchema.addComplexType(newCt,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action1()throws SAXException { XSModelGroupDecl oldGrp = $runtime.currentSchema.getModelGroupDecl(newGrp.getName()); if(oldGrp==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_MODELGROUP,newGrp.getName()) ); } else { newGrp.redefine((ModelGroupDeclImpl)oldGrp); $runtime.currentSchema.addModelGroupDecl(newGrp,true); } }
private void action1()throws SAXException { XSModelGroupDecl oldGrp = $runtime.currentSchema.getModelGroupDecl(newGrp.getName()); if(oldGrp==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_MODELGROUP,newGrp.getName()) ); } else { newGrp.redefine((ModelGroupDeclImpl)oldGrp); $runtime.currentSchema.addModelGroupDecl(newGrp,true); } }
private void action3()throws SAXException { XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); if(oldSt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); } else { newSt.redefine((SimpleTypeImpl)oldSt); $runtime.currentSchema.addSimpleType(newSt,true); } }
private void action0()throws SAXException { XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName()); if(oldAg==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP,newAg.getName()) ); } else { newAg.redefine((AttGroupDeclImpl)oldAg); $runtime.currentSchema.addAttGroupDecl(newAg,true); } }
private void action1()throws SAXException { XSModelGroupDecl oldGrp = $runtime.currentSchema.getModelGroupDecl(newGrp.getName()); if(oldGrp==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_MODELGROUP,newGrp.getName()) ); } else { newGrp.redefine((ModelGroupDeclImpl)oldGrp); $runtime.currentSchema.addModelGroupDecl(newGrp,true); } }
private void action2()throws SAXException { XSComplexType oldCt = $runtime.currentSchema.getComplexType(newCt.getName()); if(oldCt==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_COMPLEXTYPE,newCt.getName()) ); } else { newCt.redefine((ComplexTypeImpl)oldCt); $runtime.currentSchema.addComplexType(newCt,true); } }
private void action0()throws SAXException { XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName()); if(oldAg==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP,newAg.getName()) ); } else { newAg.redefine((AttGroupDeclImpl)oldAg); $runtime.currentSchema.addAttGroupDecl(newAg,true); } }
private void action0()throws SAXException { XSAttGroupDecl oldAg = $runtime.currentSchema.getAttGroupDecl(newAg.getName()); if(oldAg==null) { $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_ATTRIBUTEGROUP,newAg.getName()) ); } else { newAg.redefine((AttGroupDeclImpl)oldAg); $runtime.currentSchema.addAttGroupDecl(newAg,true); } }
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });
public void run() throws SAXException { XSType t = baseType.getType(); if (t.isComplexType() && t.asComplexType().getContentType().asParticle()!=null) { $runtime.reportError( Messages.format(Messages.ERR_SIMPLE_CONTENT_EXPECTED, t.getTargetNamespace(), t.getName()), loc); } } });