Package Framework

Examples of Framework.OverriddenAttribute


              PropertyDescriptor propertyDescriptor = descriptors[i];
              Method method = propertyDescriptor.getReadMethod();
              // Only consider the readable properties.
              if (method != null) {
                String propertyName;
                OverriddenAttribute annotation = method.getAnnotation(OverriddenAttribute.class);
                if (annotation != null && annotation.overridenAttributeName() != null) {
                  propertyName = annotation.overridenAttributeName();
                } else {
                  propertyName = propertyDescriptor.getName();
                }
                // Store the property descriptors in a case-insensitive map
                propertyMap.put(propertyName.toLowerCase(), propertyDescriptor);
View Full Code Here


              PropertyDescriptor propertyDescriptor = descriptors[i];
              Method method = propertyDescriptor.getReadMethod();
              // Only consider the readable properties.
              if (method != null) {
                String propertyName;
                OverriddenAttribute annotation = method.getAnnotation(OverriddenAttribute.class);
                if (annotation != null && annotation.overridenAttributeName() != null) {
                  propertyName = annotation.overridenAttributeName();
                } else {
                  propertyName = propertyDescriptor.getName();
                }
                // Store the property descriptors in a case-insensitive map
                propertyMap.put(propertyName.toLowerCase(), propertyDescriptor);
View Full Code Here

TOP

Related Classes of Framework.OverriddenAttribute

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.