Search in sources :

Example 1 with WrapperBeanFieldAnnotator

use of org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator.WrapperBeanFieldAnnotator in project cxf by apache.

the class Wrapper method buildWrapperBeanClass.

public WrapperBeanClass buildWrapperBeanClass() {
    WrapperBeanClass jClass = getJavaClass();
    List<JavaField> fields = buildFields();
    for (JavaField field : fields) {
        field.setOwner(jClass);
        field.annotate(new WrapperBeanFieldAnnotator());
        jClass.addField(field);
        jClass.appendGetter(field);
        jClass.appendSetter(field);
    }
    jClass.annotate(new WrapperBeanAnnotator());
    return jClass;
}
Also used : JavaField(org.apache.cxf.tools.common.model.JavaField) WrapperBeanAnnotator(org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator.WrapperBeanAnnotator) WrapperBeanFieldAnnotator(org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator.WrapperBeanFieldAnnotator) WrapperBeanClass(org.apache.cxf.tools.java2wsdl.generator.wsdl11.model.WrapperBeanClass)

Aggregations

JavaField (org.apache.cxf.tools.common.model.JavaField)1 WrapperBeanAnnotator (org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator.WrapperBeanAnnotator)1 WrapperBeanFieldAnnotator (org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator.WrapperBeanFieldAnnotator)1 WrapperBeanClass (org.apache.cxf.tools.java2wsdl.generator.wsdl11.model.WrapperBeanClass)1