Package jodd.bean
Class BeanProperty
java.lang.Object
jodd.bean.BeanProperty
Represents a bean named property. Contains two information:
- Bean instance (and cached class descriptor)
- Property name
BeanUtil and similar utils.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Objectprivate ClassDescriptor(package private) boolean(package private) final String(package private) String(package private) String(package private) final ClassIntrospector(package private) final boolean(package private) booleanprivate Object(package private) Stringprivate PropertyDescriptor(package private) Stringprivate PropertyDescriptorprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionBeanProperty(BeanUtilBean beanUtilBean, Object bean, String propertyName, boolean isSet) -
Method Summary
Modifier and TypeMethodDescriptionbooleancurrentPropertyExistOnParent(boolean declared) getGetter(boolean declared) Returns getter.getSetter(boolean declared) Returns setter.booleanbooleanisMap()Returnstrueif class is a map.private voidLoads property descriptor, if property was updated.private voidSets new bean instance.voidSets current property name.toString()voidupdateBean(Object bean) Updates the bean.void
-
Field Details
-
fullName
-
introspector
-
bean
Object bean -
lastBean
-
cd
-
name
String name -
last
boolean last -
first
boolean first -
indexString
String indexString -
isForced
final boolean isForced -
lastName
String lastName -
updateProperty
private boolean updateProperty -
propertyDescriptor
-
lastPropertyDescriptor
-
index
String index
-
-
Constructor Details
-
BeanProperty
BeanProperty(BeanUtilBean beanUtilBean, Object bean, String propertyName, boolean isSet)
-
-
Method Details
-
setName
Sets current property name. -
setBean
Sets new bean instance. -
updateBean
Updates the bean. Detects special case of suppliers. -
updateBeanClassFromProperty
public void updateBeanClassFromProperty() -
isExistingParentNull
public boolean isExistingParentNull() -
currentPropertyExistOnParent
public boolean currentPropertyExistOnParent(boolean declared) -
loadPropertyDescriptor
private void loadPropertyDescriptor()Loads property descriptor, if property was updated. -
getGetter
Returns getter. -
getSetter
Returns setter. -
isMap
public boolean isMap()Returnstrueif class is a map. -
toString
-