Class PropertyUtils


  • public class PropertyUtils
    extends java.lang.Object
    Utility class for setting JavaBeans-style properties on instances.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.beans.PropertyDescriptor getPropertyDescriptor​(java.lang.Class targetClass, java.lang.String propertyName)  
      static java.lang.Class getPropertyType​(java.lang.Class instanceClass, java.lang.String propertyName)  
      static void setProperty​(java.lang.Object instance, java.lang.String name, java.lang.String value)  
      static void setPropertyRealValue​(java.lang.Object instance, java.lang.String name, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final Logger LOGGER
    • Constructor Detail

      • PropertyUtils

        public PropertyUtils()
    • Method Detail

      • setProperty

        public static void setProperty​(java.lang.Object instance,
                                       java.lang.String name,
                                       java.lang.String value)
      • getPropertyType

        public static java.lang.Class getPropertyType​(java.lang.Class instanceClass,
                                                      java.lang.String propertyName)
      • getPropertyDescriptor

        private static java.beans.PropertyDescriptor getPropertyDescriptor​(java.lang.Class targetClass,
                                                                           java.lang.String propertyName)
      • setPropertyRealValue

        public static void setPropertyRealValue​(java.lang.Object instance,
                                                java.lang.String name,
                                                java.lang.Object value)