Examples of BeanPropertyDescriptor


Examples of org.apache.axis2.databinding.beans.BeanPropertyDescriptor

            String name = propDesc.getName();

            if (name.equals("class"))
                continue;

            BeanPropertyDescriptor beanDesc = new BeanPropertyDescriptor();
            beanDesc.setReadMethod(propDesc.getReadMethod());
            beanDesc.setWriteMethod(propDesc.getWriteMethod());

            ElementDesc elDesc = desc.getElementDesc(name);
            boolean addDesc = true// Should we add this (new) element?
            if (elDesc == null) {
                elDesc = new ElementDesc();
                elDesc.setFieldName(name);
            } else {
                addDesc = false; // Already present, so don't add it again
            }
            Class type;
            boolean isCollection = false;
            if (propDesc instanceof IndexedPropertyDescriptor) {
                IndexedPropertyDescriptor iProp =
                        (IndexedPropertyDescriptor)propDesc;
                beanDesc.setIndexedReadMethod(iProp.getIndexedReadMethod());
                beanDesc.setIndexedWriteMethod(iProp.getIndexedWriteMethod());
                type = iProp.getIndexedPropertyType();
                elDesc.setIndexedAccessor(beanDesc);
                isCollection = true;
//                elDesc.setItemQName(new QName("http://foo", "item"));
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.