Package: grails.codegen.model

## [Groovy] Trait ModelBuilder

- grails.codegen.model.ModelBuilder

- Used to build a Model for the purposes of codegen

  Authors:
    Graeme Rocher
  Since:
    3.0

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `java.lang.String` | `defaultPackage`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Model` | `model(java.lang.Class cls)` A model for the given class name
    `` | `Model` | `model(java.lang.String className)` A model for the given class name
    `` | `Model` | `model(java.io.File file)` A model for the given class name
    `` | `Model` | `model(Resource resource)` A model for the given class name

- - ### Property Detail

    - #### java.lang.String defaultPackage

  - ### Method Detail

    - #### Model model(java.lang.Class cls)

      A model for the given class name

      Parameters:
        `className` - The class name
      Returns:
        The Model instance

    - #### Model model(java.lang.String className)

      A model for the given class name

      Parameters:
        `className` - The class name
      Returns:
        The Model instance

    - #### Model model(java.io.File file)

      A model for the given class name

      Parameters:
        `className` - The class name
      Returns:
        The Model instance

    - #### Model model(Resource resource)

      A model for the given class name

      Parameters:
        `className` - The class name
      Returns:
        The Model instance