Class BeanHelper
java.lang.Object
com.inductiveautomation.ignition.common.util.BeanHelper
This is a thin wrapper around BeanInfo, which has some more helpful conveniences for calling getters and setters
 without all the syntax noise
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TfindAnnotation(String property, Class<T> annotationClass) Searches both the read method and the write method (in that order) for the annotation of the given classfindProperty(String property) Finds the property with a given name.static BeanHelperUsing this static getter will make use of a static cache internallyReads the value of the given property from the objectGets the value of a property on a bean.Class<?>getType()voidvoidSets a value for the bean. 
- 
Constructor Details
- 
BeanHelper
Create a BeanHelper for the given class. 
 - 
 - 
Method Details
- 
forClass
Using this static getter will make use of a static cache internally - 
getType
 - 
findAllProperties
 - 
findProperty
Finds the property with a given name. If the property doesn't exist, an IllegalArgumentException will be thrown - 
findAnnotation
Searches both the read method and the write method (in that order) for the annotation of the given class - 
get
public Object get(Object self, String property) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException Reads the value of the given property from the object - 
getQuiet
Gets the value of a property on a bean. Upon error, messages are logged to the logger and null is returned, except for IllegalAccessExceptions, which are thrown in RuntimeException wrappers. - 
set
public void set(Object self, String property, Object value) throws InvocationTargetException, IllegalAccessException, IllegalArgumentException  - 
setQuiet
Sets a value for the bean. Errors are logged to the logger for this BeanHelper, except for IllegalAccessExceptions, which are thrown in RuntimeException wrappers. 
 -