private Map createPropertiesByNameMap(PropertyDescriptor [] pds, Field [] fields) { Map m = new HashMap(pds.length); for (PropertyDescriptor pd : pds) { Method readMethod = pd.getReadMethod(); if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && (getIncludeReadOnly() || pd.getWriteMethod() != null)) m.put(pd.getName(), pd); } for (Field field : fields) { if (isPublicField(field.getModifiers()) && !m.containsKey(field.getName())) m.put(field.getName(), field); } return m; }
private Map createPropertiesByNameMap(PropertyDescriptor [] pds, Field [] fields) { Map m = new HashMap(pds.length); for (PropertyDescriptor pd : pds) { Method readMethod = pd.getReadMethod(); if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && (getIncludeReadOnly() || pd.getWriteMethod() != null)) m.put(pd.getName(), pd); } for (Field field : fields) { if (isPublicField(field.getModifiers()) && !m.containsKey(field.getName())) m.put(field.getName(), field); } return m; }
if (getIncludeReadOnly()) if (getIncludeReadOnly())
if (getIncludeReadOnly()) if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && !getIncludeReadOnly() && writeMethod == null) continue; if (getIncludeReadOnly() && writeMethod == null && "class".equals(propertyName)) continue; if (getIncludeReadOnly())
if (getIncludeReadOnly()) if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && !getIncludeReadOnly() && writeMethod == null) continue; if (getIncludeReadOnly() && writeMethod == null && "class".equals(propertyName)) continue; if (getIncludeReadOnly())
if (getIncludeReadOnly()) if (cachePropertiesDescriptors) if (getIncludeReadOnly())
if (getIncludeReadOnly()) if (cachePropertiesDescriptors) if (getIncludeReadOnly())
if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && !getIncludeReadOnly() && writeMethod == null) return null;
if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && !getIncludeReadOnly() && writeMethod == null) return null;