Class ModelConstructorWriter

  • All Implemented Interfaces:
    CodeWriter

    public class ModelConstructorWriter
    extends MethodWriter
    The model constructor class. Contains the constructor parameters (sorted, non-sorted), api documentation and annotations.
    • Constructor Detail

      • ModelConstructorWriter

        public ModelConstructorWriter​(java.lang.String className)
        Creates a public model constructor with sorted parameters.
        Parameters:
        className - the class name
      • ModelConstructorWriter

        public ModelConstructorWriter​(Visibility visibility,
                                      java.lang.String className,
                                      boolean sortedArguments)
        Creates a model constructor with the given Visibility, the class name, the type and if the constructor parameters should be sorted alphabetically or not.
        Parameters:
        visibility - should be public or protected
        className - the class name
        sortedArguments - if false the parameters are in the order which they where added.