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 Details

    • ModelConstructorWriter

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

      public ModelConstructorWriter(Visibility visibility, 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.
  • Method Details