Annotation Interface JStacheName


Configures how to name the generated template java code (the classes generated from JStache annotations). See JStacheConfig on how this configuration is fully resolved.
Author:
agentgt
See Also:
API Note
The default return values of UNSPECIFIED on the annotation methods are not the actual default but rather signify not set.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If JStache.name() is blank the name of the generated class is derived from the models class name plus the return value if the return value is not ""*"".
    If JStache.name() is blank the name of the generated class is derived from the models class name plus the return value if the return value is not ""*"".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default prefix if no prefix() is set anywhere.
    static final String
    The default suffix if no suffix() is set anywhere.
    static final String
    The value to mean the suffix and prefix is not set.
  • Field Details

  • Element Details

    • prefix

      If JStache.name() is blank the name of the generated class is derived from the models class name plus the return value if the return value is not ""*"".
      Returns:
      suffix for generated classes.
      See Also:
      Default:
      "*"
    • suffix

      If JStache.name() is blank the name of the generated class is derived from the models class name plus the return value if the return value is not ""*"".
      Returns:
      suffix for generated classes.
      See Also:
      Default:
      "*"