Class BeangenUtils


  • public final class BeangenUtils
    extends java.lang.Object
    • Field Detail

      • PROPERTY_COMPARATOR

        public static final java.util.Comparator PROPERTY_COMPARATOR
    • Method Detail

      • capitalize

        public static java.lang.String capitalize​(java.lang.String propName)
      • writeExplicitDefaultConstructor

        public static void writeExplicitDefaultConstructor​(int ctor_modifiers,
                                                           ClassInfo info,
                                                           IndentedWriter iw)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeArgList

        public static void writeArgList​(Property[] props,
                                        boolean declare_types,
                                        IndentedWriter iw)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertyMember

        public static void writePropertyMember​(Property prop,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Deprecated.
        use writePropertyVariable
        Throws:
        java.io.IOException
      • writePropertyVariable

        public static void writePropertyVariable​(Property prop,
                                                 IndentedWriter iw)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertyMember

        public static void writePropertyMember​(Property prop,
                                               java.lang.String defaultValueExpression,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Deprecated.
        use writePropertyVariable
        Throws:
        java.io.IOException
      • writePropertyVariable

        public static void writePropertyVariable​(Property prop,
                                                 java.lang.String defaultValueExpression,
                                                 IndentedWriter iw)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertyGetter

        public static void writePropertyGetter​(Property prop,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertyGetter

        public static void writePropertyGetter​(Property prop,
                                               java.lang.String defensiveCopyExpression,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertySetter

        public static void writePropertySetter​(Property prop,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertySetter

        public static void writePropertySetter​(Property prop,
                                               java.lang.String setterDefensiveCopyExpression,
                                               IndentedWriter iw)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writePropertySetterWithGetExpressionSetStatement

        public static void writePropertySetterWithGetExpressionSetStatement​(Property prop,
                                                                            java.lang.String getExpression,
                                                                            java.lang.String setStatement,
                                                                            IndentedWriter iw)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • hasBoundProperties

        public static boolean hasBoundProperties​(Property[] props)
      • hasConstrainedProperties

        public static boolean hasConstrainedProperties​(Property[] props)