play.boilerplate.generators

GeneratorUtils

object GeneratorUtils extends StringUtils with DefinitionsSupport

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeneratorUtils
  2. DefinitionsSupport
  3. ObjectSupport
  4. EnumerationsSupport
  5. BaseTypesSupport
  6. StringUtils
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait BodyContentType extends AnyRef

  2. sealed trait Constraint extends AnyRef

    Definition Classes
    ObjectSupport
  3. implicit final class IterableExtensionMethods[A, Repr] extends AnyVal

  4. case class ListConstraint(constraints: Seq[DefinitionsSupport.Constraint], tpe: treehugger.Forest.Type) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  5. case class MapConstraint(constraints: Seq[DefinitionsSupport.Constraint], tpe: treehugger.Forest.Type) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  6. case class MaxLength(length: Int) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  7. case class Maximum(value: Any) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  8. final case class MethodDef(tree: treehugger.Forest.Tree, additionalDef: Seq[treehugger.Forest.Tree], implicits: Seq[treehugger.Forest.Tree]) extends Product with Serializable

  9. case class MethodParam(valDef: treehugger.Forest.ValDef, fullQualified: treehugger.Forest.ValDef, additionalDef: Seq[treehugger.Forest.Tree], implicits: Seq[treehugger.Forest.Tree], defaultValue: Option[treehugger.Forest.Tree], isOptional: Boolean, isImplicit: Boolean, doc: treehugger.Forest.DocElement) extends Product with Serializable

  10. case class MimeTypeSupport(mimeType: String, requestBody: treehugger.Forest.Tree, deserialize: (treehugger.Forest.Type) ⇒ (treehugger.Forest.Ident) ⇒ treehugger.Forest.Tree, serialize: (treehugger.Forest.Type) ⇒ (treehugger.Forest.Ident) ⇒ treehugger.Forest.Tree, logContent: (treehugger.Forest.Ident) ⇒ treehugger.Forest.Tree) extends Product with Serializable

  11. case class MinLength(length: Int) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  12. case class Minimum(value: Any) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  13. case class ObjectJson(reads: treehugger.Forest.Tree, writes: treehugger.Forest.Tree) extends Product with Serializable

    Definition Classes
    ObjectSupport
  14. case class ObjectProperty(name: String, support: TypeSupport, noOptType: treehugger.Forest.Type, isOpt: Boolean, isOverride: Boolean, defaultValue: Option[treehugger.Forest.Literal], constraints: Seq[DefinitionsSupport.Constraint], description: Option[String]) extends Product with Serializable

    Definition Classes
    ObjectSupport
  15. case class ObjectPropertyJson(ident: String, reads: treehugger.Forest.Enumerator, writes: treehugger.Forest.Tree) extends Product with Serializable

    Definition Classes
    ObjectSupport
  16. case class Pattern(pattern: String) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  17. case class ResponseParam(headerName: Option[String], paramName: String, paramDef: treehugger.Forest.ValDef, paramDoc: treehugger.Forest.DocElement, isOptional: Boolean) extends Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final val ACTION_ANYCONTENT: treehugger.Forest.Type

  7. final val ACTION_EMPTY: treehugger.Forest.Type

  8. object Email extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  9. final def FUTURE(tpe: treehugger.Forest.Type): treehugger.Forest.Type

  10. final def F_OF_TYPE(tpe: treehugger.Forest.Type): treehugger.Forest.Type

  11. final val F_TYPEVAR: TypeDefTreeStart

  12. object FormUrlencoded extends BodyContentType with Product with Serializable

  13. final def IDENTITY(tpe: treehugger.Forest.Type): treehugger.Forest.Tree

  14. final def JSON_TO_STRING(json: treehugger.Forest.Tree): treehugger.Forest.Tree

  15. final def JSON_TO_TYPE(tpe: treehugger.Forest.Type)(ident: treehugger.Forest.Ident): treehugger.Forest.Tree

  16. final def LOG_JSON(ident: treehugger.Forest.Ident): treehugger.Forest.Tree

  17. final val MIME_TYPE_APPLICATION_OCTET_STREAM: String("application/octet-stream")

  18. final val MIME_TYPE_FORM_URLENCODED: String("application/x-www-form-urlencoded")

  19. final val MIME_TYPE_JSON: String("application/json")

  20. final val MIME_TYPE_MULTIPART_FORMDATA: String("multipart/form-data")

  21. final val MIME_TYPE_TEXT: String("text/plain")

  22. val MaxJsonArity: Int

    Definition Classes
    ObjectSupport
  23. object MultipartFormData extends BodyContentType with Product with Serializable

  24. object NoContent extends BodyContentType with Product with Serializable

  25. final def PAIR(key: treehugger.Forest.Tree, value: treehugger.Forest.Tree): treehugger.Forest.Tree

  26. final val PARSER_ANYCONTENT: treehugger.Forest.Tree

  27. final val PARSER_EMPTY: treehugger.Forest.Tree

  28. final def RANDOM_UUID: treehugger.Forest.Tree

  29. final def RANDOM_UUID_STRING: treehugger.Forest.Tree

  30. final val REQUEST_AS_JSON: treehugger.Forest.Tree

  31. final val REQUEST_AS_TEXT: treehugger.Forest.Tree

  32. final val REQUEST_EMPTY: treehugger.Forest.Tree

  33. object SimpleContent extends BodyContentType with Product with Serializable

  34. final def TYPE_TO_JSON(tpe: treehugger.Forest.Type)(ident: treehugger.Forest.Ident): treehugger.Forest.Tree

  35. final val UnexpectedResultClass: treehugger.Forest.TypeName

  36. final val UnexpectedResultClassName: String("UnexpectedResult")

  37. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  38. def classNameToPath(packageName: String, className: String, ext: String): String

    Definition Classes
    StringUtils
  39. def cleanDuplicateSlash(s: String): String

    Definition Classes
    StringUtils
  40. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def collectPropertyConstraints(property: Definition)(implicit ctx: GeneratorContext): Seq[Constraint]

    Definition Classes
    ObjectSupport
  42. def collectTypeContainers(definition: Definition): Seq[String]

    Definition Classes
    DefinitionsSupport
  43. def composeClassName(objName: String): String

    Definition Classes
    ObjectSupport
  44. def composeFullClassName(objName: String, obj: ComplexDefinition)(implicit ctx: GeneratorContext): String

    Definition Classes
    ObjectSupport
  45. def composeInterfaceName(objName: String): String

    Definition Classes
    ObjectSupport
  46. def composeName(parts: String*): String

    Definition Classes
    StringUtils
  47. def decapitalize(s: String): String

    Definition Classes
    StringUtils
  48. val defaultJsonSupport: MimeTypeSupport

  49. def distinctTreeByName(trees: Seq[treehugger.Forest.Tree]): Seq[treehugger.Forest.Tree]

  50. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  51. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  52. def filterNonEmptyTree(trees: Seq[treehugger.Forest.Tree]): Seq[treehugger.Forest.Tree]

  53. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  54. def findHeaderParameter(path: Path, operation: Operation, headerName: String): Option[HeaderParameter]

  55. def getBodyContentType(schema: Schema, path: Path, operation: Operation): BodyContentType

  56. def getBodyParameters(path: Path, operation: Operation)(implicit ctx: GeneratorContext): Seq[(String, MethodParam)]

  57. def getBooleanSupport(bool: BooleanDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  58. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  59. def getComplexObjectSupport(complex: ComplexObjectDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    ObjectSupport
  60. def getDateSupport(date: DateDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  61. def getDateTimeSupport(dt: DateTimeDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  62. def getDecimalSupport(decimal: DecimalDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  63. def getDefaultValue(definition: Definition): Option[treehugger.Forest.Literal]

  64. def getDoubleSupport(double: DoubleDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  65. def getEmailSupport(str: EmailDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  66. def getEnumSupport(enum: EnumDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    EnumerationsSupport
  67. def getFileName(fileName: String): String

    Definition Classes
    StringUtils
  68. def getFileSupport(file: FileDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  69. def getFloatSupport(float: FloatDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  70. def getFullParametersList(path: Path, operation: Operation): Seq[Parameter]

  71. def getIntegerSupport(int: IntegerDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  72. def getLongSupport(long: LongDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  73. def getMethodParam(param: Parameter)(implicit ctx: GeneratorContext): (String, MethodParam)

  74. def getMethodParameters(path: Path, operation: Operation, withHeaders: Boolean = true, withFormData: Boolean = true)(implicit ctx: GeneratorContext): Seq[(String, MethodParam)]

  75. def getMimeTypeSupport(implicit ctx: GeneratorContext): PartialFunction[String, MimeTypeSupport]

  76. def getObjectSupport(obj: ObjectDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    ObjectSupport
  77. def getOperationResponseTraitName(operationId: String): String

  78. def getParamImplicits(param: Parameter, support: TypeSupport)(implicit ctx: GeneratorContext): Seq[treehugger.Forest.Tree]

  79. def getParameterIdentifier(param: Parameter): String

    Definition Classes
    StringUtils
  80. def getReadsConstraint(constraint: Constraint, noOptType: treehugger.Forest.Type): treehugger.Forest.Tree

    Definition Classes
    ObjectSupport
  81. def getResponseBodyType(response: Response)(implicit ctx: GeneratorContext): Option[TypeSupport]

  82. def getResponseClassName(operationId: String, responseCode: ResponseCode): String

  83. def getResponseParameters(response: Response)(implicit ctx: GeneratorContext): Seq[ResponseParam]

  84. def getSecurityProvider(operation: Operation)(implicit ctx: GeneratorContext): SecurityProvider

  85. def getSecurityProvider(schemaName: String)(implicit ctx: GeneratorContext): SecurityProvider

  86. def getSecurityProviderOfSchema(schema: Schema)(implicit ctx: GeneratorContext): Seq[SecurityProvider]

  87. def getSimpleTypeSupport(definition: SimpleDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  88. def getStringSupport(str: StringDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  89. def getTypeSupport(definition: Definition, context: DefinitionContext = DefinitionContext.default)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    DefinitionsSupport
  90. def getTypeSupportRef(reference: RefDefinition, context: DefinitionContext = DefinitionContext.default)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    DefinitionsSupport
  91. def getUUIDSupport(uuid: UUIDDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  92. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  93. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  94. def isOptional(definition: Definition): Boolean

  95. def isOptional(parameter: Parameter): Boolean

  96. def isTraceIdHeaderName(headerName: String)(implicit ctx: GeneratorContext): Boolean

  97. def isTraceIdHeaderParameter(param: Parameter)(implicit ctx: GeneratorContext): Boolean

  98. def methodDefinition(methodName: String, methodType: treehugger.Forest.Type, methodParams: Seq[MethodParam], securityParams: Seq[treehugger.Forest.ValDef]): DefTreeStart

  99. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  100. final def notify(): Unit

    Definition Classes
    AnyRef
  101. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  102. def objectNameFromFileName(fileName: String, obj: String, skipNotValidChars: Boolean = true): String

    Definition Classes
    StringUtils
  103. def operationMethodDef(path: Path, operation: Operation, methodType: (treehugger.Forest.Type) ⇒ treehugger.Forest.Type, canBeDeprecated: Boolean = true)(body: (DefTreeStart) ⇒ treehugger.Forest.DefDef)(implicit ctx: GeneratorContext): MethodDef

  104. def padTo(n: Int, s: String): String

    Definition Classes
    StringUtils
  105. def sanitizeFileName(fileName: String): String

    Definition Classes
    StringUtils
  106. final val serviceNameValName: String("serviceName")

  107. final val serviceNameValRef: treehugger.Forest.Ident

  108. def stringToValidIdentifier(str: String, skipNotValidChars: Boolean): String

    Definition Classes
    StringUtils
  109. def supportedMimeTypes(implicit ctx: GeneratorContext): Set[String]

  110. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  111. def toString(): String

    Definition Classes
    AnyRef → Any
  112. final def traceIdValRef(tracer: treehugger.Forest.Ident): treehugger.Forest.Tree

  113. final def traceMsg(msg: treehugger.Forest.Tree): treehugger.Forest.Tree

  114. final val tracerCtor: treehugger.Forest.Tree

  115. final val tracerRandom: treehugger.Forest.Tree

  116. final val tracerType: treehugger.Forest.Type

  117. final val tracerValName: String

  118. final val tracerValRef: treehugger.Forest.Ident

  119. final val tracesImports: Seq[treehugger.Forest.Import]

  120. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  121. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  122. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DefinitionsSupport

Inherited from ObjectSupport

Inherited from EnumerationsSupport

Inherited from BaseTypesSupport

Inherited from StringUtils

Inherited from AnyRef

Inherited from Any

Ungrouped