ind.jaxb-xjc.4.0.5.source-code.include.rng Maven / Gradle / Ivy
The newest version!
(null,AnnotationContext.SCHEMA);
$runtime.includeSchema( schemaLocation );
(null,AnnotationContext.SCHEMA);
if(ns==null) ns="";
$runtime.importSchema( ns,schemaLocation );
schemaLocation =
$runtime.includeSchema( schemaLocation );
(null,AnnotationContext.SCHEMA);
newSt =
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);
}
newCt =
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);
}
newGrp =
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);
}
newAg =
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);
}