Class BeanHelper
java.lang.Object
de.s42.base.beans.BeanHelper
- Author:
- Benjamin Schiller
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <BeanType> BeanInfo<BeanType> getBeanInfo(Class<? extends BeanType> beanClass) static booleanhasProperty(Object bean, String property) static <ReturnType>
ReturnTypereadProperty(Object bean, String property, ReturnType defaultValue) static String
-
Field Details
-
infos
-
-
Constructor Details
-
BeanHelper
private BeanHelper()
-
-
Method Details
-
getBeanInfo
public static <BeanType> BeanInfo<BeanType> getBeanInfo(Class<? extends BeanType> beanClass) throws InvalidBean - Throws:
InvalidBean
-
hasProperty
- Throws:
InvalidBean
-
readProperty
public static <ReturnType> ReturnType readProperty(Object bean, String property, ReturnType defaultValue) throws InvalidBean - Throws:
InvalidBean
-
toJSON
-