If this {@link MetaBean} is compatible with bean, return this, else null.
bean
this
null
Compatibility is satisfied in one of the following ways:
beanClass
102103104105106107108109110111112
context.setCurrentIndex(index++); if (each == null) { continue; // Null values are not validated } if (dyn != null) { context.setBean(each, dyn.resolveMetaBean(each)); } else { context.setBean(each); } s.validate(); }
135136137138139140141142143144145
} if (each == null) { continue; // Null values are not validated } if (dyn != null) { context.setBean(each, dyn.resolveMetaBean(each)); } else { context.setBean(each); } s.validate(); }
163164165166167168169170171172173
Object value = currentBean.get(key); if (value == null) { continue; // Null values are not validated } if (dyn != null) { context.setBean(value, dyn.resolveMetaBean(value)); } else { context.setBean(value); } s.validate(); }
107108109110111112113114115116117
146147148149150151152153154155156
183184185186187188189190191192193
} context.setCurrentKey(entry.getKey()); if (dyn == null) { context.setBean(value); } else { context.setBean(value, dyn.resolveMetaBean(value)); } s.validate(); } } finally { context.moveUp(currentBean, metaBean);
109110111112113114115116117118119
148149150151152153154155156157158
185186187188189190191192193194195
117118119120121122123124125126127
moveDownIfNecessary(); MetaBean metaBean = validationContext.getMetaBean(); if (metaBean instanceof DynamicMetaBean) { metaBean = metaBean.resolveMetaBean(ObjectUtils.defaultIfNull(validationContext.getBean(), rawType)); validationContext.setMetaBean(metaBean); } MetaProperty mp = metaBean.getProperty(token); if (mp == null) { // TODO this could indicate a property hosted on a superclass; should we shunt the context traversal down a path based on that type?