Package com.envoisolutions.sxc.jaxb.model

Examples of com.envoisolutions.sxc.jaxb.model.Property


    }

    private void writeElement(JAXBObjectBuilder builder, JBlock block, ElementMapping mapping, JVar itemVar, Class type, boolean nillable, boolean xmlList) {
        // if this is an id ref we write the ID property of the target bean instead of the bean itself
        if (mapping.getProperty().isIdref()) {
            Property property = mapping.getProperty();
            Property idProperty = findReferencedIdProperty(property);

            // read the id value
            itemVar = getValue(builder, itemVar, idProperty, property.getName() + JavaUtils.capitalize(idProperty.getName()), block);

            // the written type is always a non-nillable String
            type = String.class;
            nillable = false;
View Full Code Here


            type = property.getComponentAdaptedType();
        }

        // if this is an id ref we write the ID property of the target bean instead of the bean itself
        if (property.isIdref()) {
            Property idProperty = findReferencedIdProperty(property);

            // read the id value
            itemVar = getValue(builder, itemVar, idProperty, property.getName() + JavaUtils.capitalize(idProperty.getName()), itemBlock);

            // the written type is always String
            type = String.class;

            // if (id != null) write the value
View Full Code Here

        if (targetBean == null) {
            throw new BuildException("Unknown bean " + toClass(property.getType()));
        }

        // find id property on referenced bean
        Property idProperty = null;
        while (idProperty == null) {
            for (Property targetProperty : targetBean.getProperties()) {
                if (targetProperty.isId()) {
                    idProperty = targetProperty;
                    break;
View Full Code Here

TOP

Related Classes of com.envoisolutions.sxc.jaxb.model.Property

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.