ind.jaxb-xjc.2.2.10.source-code.include.rng Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-xjc Show documentation
Show all versions of jaxb-xjc Show documentation
Old JAXB Binding Compiler. Contains source code needed for binding customization files into java sources.
In other words: the *tool* to generate java classes for the given xml representation.
(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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy