Class SqlPrettyWriter.Bean

  • Enclosing class:

    private static class SqlPrettyWriter.Bean
    extends java.lang.Object
    Helper class which exposes the get/set methods of an object as properties.
    • Field Summary

      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.reflect.Method> getterMethods  
      private SqlPrettyWriter o  
      private java.util.Map<java.lang.String,​java.lang.reflect.Method> setterMethods  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String name)  
      java.lang.String[] getPropertyNames()  
      void set​(java.lang.String name, java.lang.String value)  
      private java.lang.String stripPrefix​(java.lang.String name, int offset)  
      • Methods inherited from class java.lang.Object

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

      • getterMethods

        private final java.util.Map<java.lang.String,​java.lang.reflect.Method> getterMethods
      • setterMethods

        private final java.util.Map<java.lang.String,​java.lang.reflect.Method> setterMethods
    • Method Detail

      • stripPrefix

        private java.lang.String stripPrefix​(java.lang.String name,
                                             int offset)
      • set

        public void set​(java.lang.String name,
                        java.lang.String value)
      • get

        public java.lang.Object get​(java.lang.String name)
      • getPropertyNames

        public java.lang.String[] getPropertyNames()