krasa / krasa-jaxb-tools

XJC / JAXB plugin for generation of Bean Validation Annotations (JSR-303) and replacing primitive types
Apache License 2.0
61 stars 47 forks source link

Add java annotation from xs:document #50

Closed estronque closed 7 years ago

estronque commented 8 years ago

I am Sorry but my english level is low. Maybe add this:

for (ClassOutline co : model.getClasses()) {

            XSAnnotation xsAnnotation = co.target.getSchemaComponent().getAnnotation();
            if (xsAnnotation != null) {
                Object unknow= xsAnnotation.getAnnotation();
                if (unknowinstanceof BindInfo) {
                    BindInfo bindInfo = (BindInfo) unknow;
                    String documentation = bindInfo.getDocumentation();
                    if (documentation!= null) {
                        log("Documentat ion: " + documentation);

                        co.implClass.annotate(XmlDocumentation.class).param("description", documentation);
                    }
                }
            }
krasa commented 8 years ago

Could you please rebase so it does not show my commits?

krasa commented 7 years ago

@digitalillusion No, it is not merged. This is not even a pull request. :X